Prevent valgrind error with Json parser
[platform/core/uifw/dali-toolkit.git] / base / dali-toolkit / internal / builder / json-parser-state.cpp
index d7d51a4..1547156 100644 (file)
@@ -350,6 +350,11 @@ bool JsonParserState::ParseWhiteSpace()
   bool c_comment   = false;
   bool cpp_comment = false;
 
+  if( mIter == mEnd )
+  {
+    return true;
+  }
+
   // skip white space
   char nextChar = 0;
   while(1)