Skip to content

Cannot convert undefined or null to object #57007

@isidorn

Description

@isidorn
  1. Start debugging
  2. Have the loaded scripts view open
  3. Stop debugging, notice exception in the console
  4. I can not reproduce with Stable so it might be that my listener refactoring caused this

If you pause on exception you will see that this call caused it.

  ERR Cannot convert undefined or null to object: TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at file:///Users/isidor/Development/vscode/out/vs/base/parts/tree/browser/treeView.js:606:35
    at file:///Users/isidor/Development/vscode/out/vs/base/common/async.js:272:28
    at Object.notifySuccess [as _notify] (file:///Users/isidor/Development/vscode/out/vs/base/common/winjs.base.js:1191:59)
    at Object.enter (file:///Users/isidor/Development/vscode/out/vs/base/common/winjs.base.js:867:30)
    at Promise_ctor._run (file:///Users/isidor/Development/vscode/out/vs/base/common/winjs.base.js:1089:29)
    at Promise_ctor._completed (file:///Users/isidor/Development/vscode/out/vs/base/common/winjs.base.js:1057:18)
    at file:///Users/isidor/Development/vscode/out/vs/base/common/async.js:277:23
errors.js:42 WARNING: Promise with no error callback:24
errors.js:43 {exception: TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at file…, error: null, promise: _…e.C…s.d…e._creator, handler: undefined, id: 24, …}
errors.js:45 TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)
    at treeView.js:606
    at async.js:272
    at Object.notifySuccess [as _notify] (winjs.base.js:1191)
    at Object.enter (winjs.base.js:867)
    at Promise_ctor._run (winjs.base.js:1089)
    at Promise_ctor._completed (winjs.base.js:1057)
    at async.js:277

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugdebugDebug viewlet, configurations, breakpoints, adapter issuesverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions