mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA fixes: EA-120951, EA-121035
add null-check for the instance of ToolWindowManager (caused NPE ar TouchBarsManager.lambda$onFocusEvent$)
This commit is contained in:
@@ -202,7 +202,11 @@ public class TouchBarsManager {
|
||||
// NOTE: WindowEvent.WINDOW_GAINED_FOCUS can be fired when frame focuse
|
||||
if (e.getID() == FocusEvent.FOCUS_GAINED) {
|
||||
ourProjectData.forEach((project, data) -> {
|
||||
final ToolWindow dtw = ToolWindowManagerEx.getInstanceEx(project).getToolWindow(ToolWindowId.DEBUG);
|
||||
final ToolWindowManagerEx twm = ToolWindowManagerEx.getInstanceEx(project);
|
||||
if (twm == null)
|
||||
return;
|
||||
|
||||
final ToolWindow dtw = twm.getToolWindow(ToolWindowId.DEBUG);
|
||||
if (dtw == null)
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user