Skip to content

Commit 264c3ed

Browse files
authored
Merge pull request open-source-parsers#573 from ya1gaurav/patch-39
Fix crash issue due to NULL value.
2 parents a47fc39 + f251f15 commit 264c3ed

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/lib_json/json_value.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,7 @@ Value::Value(double value) {
398398

399399
Value::Value(const char* value) {
400400
initBasic(stringValue, true);
401+
JSON_ASSERT_MESSAGE(value != NULL, "Null Value Passed to Value Constructor");
401402
value_.string_ = duplicateAndPrefixStringValue(value, static_cast<unsigned>(strlen(value)));
402403
}
403404

0 commit comments

Comments
 (0)