Skip to content

Commit bff7a78

Browse files
committed
For #68:
a null Any is different from an Any that contains a null pointer !!
1 parent 80e021b commit bff7a78

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/lib/OGF/gom/lua/lua_interpreter.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,11 @@ namespace OGF {
646646
scope->ref();
647647
Any o_as_any = scope->resolve(string_value);
648648
scope->unref();
649-
if(!o_as_any.is_null()) {
649+
Object* o = nullptr;
650+
o_as_any.get_value(o);
651+
if(o == nullptr) {
652+
return String::quote(string_value);
653+
} else {
650654
return back_parse(o_as_any, mtype);
651655
}
652656
}

0 commit comments

Comments
 (0)