ecere/JSON Parser: Fixed a crash (in a warning printout!) on encountering an unexpect...
authorJerome St-Louis <jerome@ecere.com>
Thu, 9 Aug 2012 04:57:10 +0000 (00:57 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 9 Aug 2012 04:57:10 +0000 (00:57 -0400)
ecere/src/sys/JSON.ec

index faf4563..f504d8d 100644 (file)
@@ -240,7 +240,8 @@ public:
             {
                if(itemResult == typeMismatch)
                {
-                  PrintLn("Warning: Incompatible value for array value, expected ", (String)arrayType.name);
+                  if(arrayType)
+                     PrintLn("Warning: Incompatible value for array value, expected ", (String)arrayType.name);
                }
                else if(itemResult == noItem)
                   result = success;