We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 122f0bb commit c7da3b5Copy full SHA for c7da3b5
graf2d/gpad/src/TPad.cxx
@@ -7025,7 +7025,7 @@ TObject *TPad::WaitPrimitive(const char *pname, const char *emode)
7025
TObject *obj = nullptr;
7026
Bool_t testlast = kFALSE;
7027
Bool_t hasname = pname && (strlen(pname) > 0);
7028
- if (!pname[0] && !emode[0]) testlast = kTRUE;
+ if ((!pname || !pname[0]) && (!emode || !emode[0])) testlast = kTRUE;
7029
if (testlast) gROOT->SetEditorMode();
7030
while (!gSystem->ProcessEvents() && gROOT->GetSelectedPad() && gPad) {
7031
if (gROOT->GetEditorMode() == 0) {
0 commit comments