diff options
author | angelozerr | 2018-03-27 10:03:13 +0000 |
---|---|---|
committer | angelozerr | 2018-03-27 10:03:13 +0000 |
commit | ba618ed417867d991a486c9760e3f1e4f5a1ef75 (patch) | |
tree | 26464948d4dc08606a6b526cff981b7f2587895d | |
parent | fdbbd9fbc06bba9b3857000cc651f9385ddf2371 (diff) | |
download | eclipse.platform.text-ba618ed417867d991a486c9760e3f1e4f5a1ef75.tar.gz eclipse.platform.text-ba618ed417867d991a486c9760e3f1e4f5a1ef75.tar.xz eclipse.platform.text-ba618ed417867d991a486c9760e3f1e4f5a1ef75.zip |
Bug 532587 - Inline Annotation can prevent editor from loading
Change-Id: Ia8a22f71598cb7935853aa530b09af19d21219d9
Signed-off-by: angelozerr <angelo.zerr@gmail.com>
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationSupport.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationSupport.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationSupport.java index dcf0802684e..bda03cbd092 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationSupport.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/inlined/InlinedAnnotationSupport.java @@ -683,6 +683,10 @@ public class InlinedAnnotationSupport { * otherwise. */ boolean isInVisibleLines(int offset) { + if (visibleLines == null) { + // case of support has been uninstalled and mining must be drawn. + return false; + } return visibleLines.isInVisibleLines(offset); } |