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 fdd8c18 commit 4eedf5eCopy full SHA for 4eedf5e
src/node_modules.cc
@@ -153,6 +153,10 @@ const BindingData::PackageConfig* BindingData::GetPackageJSON(
153
return throw_invalid_package_config();
154
}
155
156
+ // based on coverity using key with == derefs the raw value
157
+ // avoid derefing if its null
158
+ if (key.raw() == nullptr) continue;
159
+
160
if (key == "name") {
161
// Though there is a key "name" with a corresponding value,
162
// the value may not be a string or could be an invalid JSON string
0 commit comments