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 65725ef commit f7fb91eCopy full SHA for f7fb91e
src/node.cc
@@ -1240,7 +1240,7 @@ int LoadSnapshotDataAndRun(const SnapshotData** snapshot_data_ptr,
1240
// snapshot, but we will skip it if --no-node-snapshot is specified.
1241
const node::SnapshotData* read_data =
1242
SnapshotBuilder::GetEmbeddedSnapshotData();
1243
- if (read_data->Check()) {
+ if (read_data != nullptr && read_data->Check()) {
1244
// If we fail to read the embedded snapshot, treat it as if Node.js
1245
// was built without one.
1246
*snapshot_data_ptr = read_data;
0 commit comments