From 9ee218ac9ba464687a41eea59707187aea28c962 Mon Sep 17 00:00:00 2001 From: Muresan Vlad aka Mury Date: Fri, 2 Jan 2015 13:31:25 +0200 Subject: [PATCH] Fix for bug 1088 --- core/dictionary.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/dictionary.cpp b/core/dictionary.cpp index 16ee3973824..2d503bae50c 100644 --- a/core/dictionary.cpp +++ b/core/dictionary.cpp @@ -186,10 +186,12 @@ Error Dictionary::parse_json(const String& p_json) { String errstr; int errline=0; + if (p_json != ""){ Error err = JSON::parse(p_json,*this,errstr,errline); if (err!=OK) { ERR_EXPLAIN("Error parsing JSON: "+errstr+" at line: "+itos(errline)); ERR_FAIL_COND_V(err!=OK,err); + } } return OK;