git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@26935
ac1ea38d-2e2b-0410-8846-
a27921b304fc
if (event.getTrigger() instanceof Event) {\r
Event trigger = (Event)event.getTrigger();\r
Control focusControl = trigger.display.getFocusControl();\r
+ if(focusControl == null) {\r
+ new Exception(\r
+ "Could not determine, if equation needs to be saved before action. focusControl == null")\r
+ .printStackTrace();\r
+ return;\r
+ }\r
Composite parent = focusControl.getParent();\r
\r
/* Scan bottom-up if we come across an EquationTab. \r