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: add nullptr checks in `StreamPipe::New` · nodejs/node@33728cb

File tree

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

‎src/stream_pipe.cc‎

Copy file name to clipboardExpand all lines: src/stream_pipe.cc
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,6 +278,8 @@ void StreamPipe::New(const FunctionCallbackInfo<Value>& args) {
278278
CHECK(args[1]->IsObject());
279279
StreamBase* source = StreamBase::FromObject(args[0].As<Object>());
280280
StreamBase* sink = StreamBase::FromObject(args[1].As<Object>());
281+
CHECK_NOT_NULL(source);
282+
CHECK_NOT_NULL(sink);
281283

282284
if (StreamPipe::New(source, sink, args.This()).IsNothing()) return;
283285
}

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.