Pārlūkot izejas kodu

HPCC-23955 Resolve exception caused by nullptr passed to ScopeFilter::compare

Signed-off-by: Shamser Ahmed <shamser.ahmed@lexisnexis.co.uk>
Shamser Ahmed 5 gadi atpakaļ
vecāks
revīzija
5c05de8659
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      common/workunit/workunit.cpp

+ 1 - 1
common/workunit/workunit.cpp

@@ -11829,7 +11829,7 @@ StatisticKind CLocalWUStatistic::getKind() const
 const char * CLocalWUStatistic::queryScope() const
 {
     const char * scope = p->queryProp("@scope");
-    if (scope && streq(scope, LEGACY_GLOBAL_SCOPE))
+    if (!scope || streq(scope, LEGACY_GLOBAL_SCOPE))
         scope = GLOBAL_SCOPE;
     return scope;
 }