-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
The problem occurs on line 418 in the fluorite.model.EventRecorder.java where "Shell shell = Display.getDefault().getActiveShell();" produce a NULL pointer.
Solution: Add the below function to the fluorite.model.EventRecorder.java file and call that function to get the Shell on line 418.
protected Shell getShell() {
Shell shell = null;
IWorkbenchWindow activeWorkbenchWindow = PlatformUI.getWorkbench().getActiveWorkbenchWindow();
if (activeWorkbenchWindow != null) {
shell = activeWorkbenchWindow.getShell();
}
if (shell == null) {
Display dis = Display.getCurrent();
if (dis == null) {
dis = Display.getDefault();
}
if (dis != null) {
shell = dis.getActiveShell();
}
}
if (shell == null) {
shell = new Shell();
}
return shell;
}
Metadata
Metadata
Assignees
Labels
No labels
