- Timestamp:
- Sep 4, 2018, 2:33:52 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/JSON/JSONNull.cs
r325 r326 10 10 //Log.Out ("ParseNull enter (" + offset + ")"); 11 11 12 if (json.Substring (offset, 4).Equals ("null")) { 13 //Log.Out ("JSON:Parsed Null"); 14 offset += 4; 15 return new JSONNull (); 12 if (!json.Substring (offset, 4).Equals ("null")) { 13 throw new MalformedJSONException ("No valid null value found"); 16 14 } 17 15 18 throw new MalformedJSONException ("No valid null value found"); 16 //Log.Out ("JSON:Parsed Null"); 17 offset += 4; 18 return new JSONNull (); 19 19 } 20 20 }
Note:
See TracChangeset
for help on using the changeset viewer.