mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix NPE on updating invisible lookup
This commit is contained in:
@@ -210,6 +210,10 @@ public class HintManagerImpl extends HintManager implements Disposable {
|
||||
((ScrollAwareHint)hint.getComponent()).editorScrolled();
|
||||
}
|
||||
|
||||
if (!hint.isVisible()) {
|
||||
return;
|
||||
}
|
||||
|
||||
Editor editor = e.getEditor();
|
||||
if (!editor.getComponent().isShowing() || editor.isOneLineMode()) return;
|
||||
Rectangle newRectangle = e.getOldRectangle();
|
||||
|
||||
Reference in New Issue
Block a user