Skip to content

Instantly share code, notes, and snippets.

@cmac1000
Last active June 10, 2016 12:37
Show Gist options
  • Save cmac1000/317f312c3f969d0fa4a15173ed80ac08 to your computer and use it in GitHub Desktop.
Save cmac1000/317f312c3f969d0fa4a15173ed80ac08 to your computer and use it in GitHub Desktop.
null.js
> var options = null;
undefined
> options
null
> options['developerCredentials']
TypeError: Cannot read property 'developerCredentials' of null
at repl:1:8
at REPLServer.defaultEval (repl.js:164:27)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:393:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:210:10)
at REPLServer.Interface._line (readline.js:549:8)
at REPLServer.Interface._ttyWrite (readline.js:826:14)
> options.developerCredentials
TypeError: Cannot read property 'developerCredentials' of null
at repl:1:8
at REPLServer.defaultEval (repl.js:164:27)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:393:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:210:10)
at REPLServer.Interface._line (readline.js:549:8)
at REPLServer.Interface._ttyWrite (readline.js:826:14)
> if (options.developerCredentials) {console.log('ok')};
TypeError: Cannot read property 'developerCredentials' of null
at repl:1:12
at REPLServer.defaultEval (repl.js:164:27)
at bound (domain.js:280:14)
at REPLServer.runBound [as eval] (domain.js:293:12)
at REPLServer.<anonymous> (repl.js:393:12)
at emitOne (events.js:82:20)
at REPLServer.emit (events.js:169:7)
at REPLServer.Interface._onLine (readline.js:210:10)
at REPLServer.Interface._line (readline.js:549:8)
at REPLServer.Interface._ttyWrite (readline.js:826:14)
> if (options && options.developerCredentials) {console.log('ok')};
undefined
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment