Skip to content

Commit 4da277a

Browse files
committed
Avoid NPE
1 parent 1046692 commit 4da277a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/inspector-overlay.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,10 @@ const InspectorOverlay = Class(
284284

285285
onDataModified: function(nodeData, hasJQueryData) {
286286
let markupView = this.panel.markup;
287+
if (!markupView) {
288+
return;
289+
}
290+
287291
let client = this.toolbox.target.client;
288292
let nodeFront = nodeData.node;
289293

0 commit comments

Comments
 (0)