ide: fix debug-only bug when adding a watch expression when application is not running.
[sdk] / compiler / libec / src / pass15.ec
index d2962a3..168cdd7 100644 (file)
@@ -7439,7 +7439,7 @@ static GlobalData FindGlobalData(char * name)
          start = c+1;
       }
    }
-   if(c - start)
+   if(nameSpace && c - start)
    {
       return ScanGlobalData(nameSpace, name + start);
    }