Skip to content

Commit bdfd7fe

Browse files
authored
GLSP-1604: fix potentiall NPE (#119)
Add nullcheck to FocucsAwareBrowser to avoid a potential NPE Fixes eclipse-glsp/glsp/issues/1604
1 parent 7ad6f24 commit bdfd7fe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/plugins/org.eclipse.glsp.ide.editor/src/org/eclipse/glsp/ide/editor/ui/FocusAwareBrowser.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public void focusGained(final FocusEvent e) {
4747

4848
@Override
4949
public boolean isFocusControl() {
50-
if (!focusTracker.get()) {
50+
if (focusTracker != null && !focusTracker.get()) {
5151
return false;
5252
}
5353
return super.isFocusControl();

0 commit comments

Comments
 (0)