Skip to content

Commit 924796f

Browse files
author
Nako Sung
committed
fixes #2
1 parent 46f41fe commit 924796f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Source/V8/Private/JavascriptIsolate_Private.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,14 @@ class FJavascriptIsolateImplementation : public FJavascriptIsolate
208208
static Local<Value> Get(Isolate* isolate, Local<Object> self, UProperty* Property)
209209
{
210210
auto Instance = FStructMemoryInstance::FromV8(self);
211-
return Instance ? ReadProperty(isolate, Property, Instance->GetMemory(), FStructMemoryPropertyOwner(Instance)) : Undefined(isolate);
211+
if (Instance)
212+
{
213+
return ReadProperty(isolate, Property, Instance->GetMemory(), FStructMemoryPropertyOwner(Instance));
214+
}
215+
else
216+
{
217+
return Undefined(isolate);
218+
}
212219
}
213220

214221
static void Set(Isolate* isolate, Local<Object> self, UProperty* Property, Local<Value> value)

0 commit comments

Comments
 (0)