Commit 97102b94 authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Fix null dereference when deleting component before opening blocks (#1268)

Change-Id: Id93060e5d4a9c9b8ae153a7c2ac57dac92ad99f6
parent 3e76dffe
...@@ -334,7 +334,7 @@ Blockly.WorkspaceSvg.prototype.removeComponent = function(uid) { ...@@ -334,7 +334,7 @@ Blockly.WorkspaceSvg.prototype.removeComponent = function(uid) {
var component = this.componentDb_.getInstance(uid); var component = this.componentDb_.getInstance(uid);
// Fixes #1175 // Fixes #1175
if (component.name === this.drawer_.lastComponent) { if (this.drawer_ && component.name === this.drawer_.lastComponent) {
this.drawer_.hide(); this.drawer_.hide();
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment