devtools icon indicating copy to clipboard operation
devtools copied to clipboard

Cannot read property 'children' of null in Layout Explorer

Open kenzieschmoll opened this issue 5 years ago • 0 comments

Selected a bunch of different nodes in the inspector, opened layout explorer, switched pages in DevTools, came back to the inspector with the layout explorer open and selected a new node in the summary tree:

Was running on flutter web so the stack trace is a bit funky, but I'm pretty sure it is because we try to call json['children'] when RemoteDiagnosticsNode.json is null.

TypeError: Cannot read property 'children' of null
    at http://localhost:62153/packages/devtools_app/src/flutter/connect_screen.dart.lib.js:50690:60
    at flex$._FlexLayoutExplorerWidgetState.new.setState (http://localhost:62153/packages/flutter/src/widgets/widget_span.dart.lib.js:14710:22)
    at flex$._FlexLayoutExplorerWidgetState.new.[_updateHighlighted] (http://localhost:62153/packages/devtools_app/src/flutter/connect_screen.dart.lib.js:50685:12)
    at flex$._FlexLayoutExplorerWidgetState.new.[_setProperties] (http://localhost:62153/packages/devtools_app/src/flutter/connect_screen.dart.lib.js:50696:31)
    at flex$._FlexLayoutExplorerWidgetState.new.onSelectionChanged (http://localhost:62153/packages/devtools_app/src/flutter/connect_screen.dart.lib.js:50602:31)
    at onSelectionChanged.next (<anonymous>)

kenzieschmoll avatar May 07 '20 18:05 kenzieschmoll