We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcf6632 commit c40f6b5Copy full SHA for c40f6b5
src/njsOracle.cpp
@@ -1250,9 +1250,10 @@ njsSubscription *njsOracledb::GetSubscription(std::string &name)
1250
Nan::HandleScope scope;
1251
Local<String> nameObj = Nan::New<String>(name).ToLocalChecked();
1252
Local<Object> allSubscriptions = Nan::New(subscriptions);
1253
- MaybeLocal<Value> mval = Nan::Get(allSubscriptions, nameObj);
1254
Local<Value> value;
1255
- if(!mval.ToLocal(&value))
+ if (!Nan::Get(allSubscriptions, nameObj).ToLocal(&value))
+ return NULL;
1256
+ if (value->IsUndefined())
1257
return NULL;
1258
return Nan::ObjectWrap::Unwrap<njsSubscription>(value.As<Object>());
1259
}
0 commit comments