GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — src: fix nullptr access on realm · nodejs/node@f5384c3

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • src
    • env.cc
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/env.cc‎

Copy file name to clipboardExpand all lines: src/env.cc
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,7 @@ void Environment::AssignToContext(Local<v8::Context> context,
547547
// Used to retrieve bindings
548548
context->SetAlignedPointerInEmbedderData(
549549
ContextEmbedderIndex::kBindingDataStoreIndex,
550-
realm->binding_data_store());
550+
realm != nullptr ? realm->binding_data_store() : nullptr);
551551

552552
// ContextifyContexts will update this to a pointer to the native object.
553553
context->SetAlignedPointerInEmbedderData(

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.