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