fix NPE on updating invisible lookup

This commit is contained in:
peter.gromov
2010-10-06 18:17:37 +04:00
parent b7b92df598
commit c27e5fd8a6
@@ -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();