Skip to content
Snippets Groups Projects
Commit 42598906 authored by Maximilian Giller's avatar Maximilian Giller
Browse files

Fixed null exception

parent 9446af73
Branches
No related tags found
No related merge requests found
......@@ -34,13 +34,17 @@ class State extends Tool {
return;
}
this.tool.onToolDeactivate(tool);
if (this.tool !== undefined) {
this.tool.onToolDeactivate(tool);
}
this.previousTool = this.tool;
this.tool = tool;
this.display.setSelectedTool(tool);
this.tool.onToolActivate();
if (this.tool !== undefined) {
this.tool.onToolActivate();
}
}
setSelectedItem(item) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment