diff options
author | Markus Keller | 2012-05-10 14:44:31 +0000 |
---|---|---|
committer | Markus Keller | 2012-05-10 14:44:31 +0000 |
commit | 3a92d1b6335abeda82619a815470206de8365404 (patch) | |
tree | 247f76ff02939f58a9823d58bb58bd50ba27e925 | |
parent | ae6008e004d54d180a81925bf335d6e5d61f5a06 (diff) | |
download | eclipse.platform.text-3a92d1b6335abeda82619a815470206de8365404.tar.gz eclipse.platform.text-3a92d1b6335abeda82619a815470206de8365404.tar.xz eclipse.platform.text-3a92d1b6335abeda82619a815470206de8365404.zip |
Bug 379093: NPE in PositionManager.managePosition(..)v20120510-1444I20120510-2100I20120510-1900
-rw-r--r-- | org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java index 371a285803d..666cc3012b2 100644 --- a/org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java +++ b/org.eclipse.jface.text/src/org/eclipse/jface/text/source/MatchingCharacterPainter.java @@ -83,7 +83,7 @@ public final class MatchingCharacterPainter implements IPainter, PaintListener { private boolean fCharacterPresentAtCaretLocation; /** - * The document this painter is associated with. + * The document this painter is associated with, or <code>null</code>. * * @since 3.8 */ @@ -465,7 +465,7 @@ public final class MatchingCharacterPainter implements IPainter, PaintListener { * org.eclipse.jface.text.IDocument) */ public void inputDocumentAboutToBeChanged(IDocument oldInput, IDocument newInput) { - //do nothing + fDocument= null; } /** |