diff --git a/src/crypto/crypto_keys.cc b/src/crypto/crypto_keys.cc index f66c57b1079..b38a9a37773 100644 --- a/src/crypto/crypto_keys.cc +++ b/src/crypto/crypto_keys.cc @@ -1066,6 +1066,7 @@ void NativeKeyObject::New(const FunctionCallbackInfo& args) { CHECK_EQ(args.Length(), 1); CHECK(args[0]->IsObject()); KeyObjectHandle* handle = Unwrap(args[0].As()); + CHECK_NOT_NULL(handle); new NativeKeyObject(env, args.This(), handle->Data()); }