Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Keller2012-05-10 10:44:31 -0400
committerMarkus Keller2012-05-10 10:44:31 -0400
commit3a92d1b6335abeda82619a815470206de8365404 (patch)
tree247f76ff02939f58a9823d58bb58bd50ba27e925
parentae6008e004d54d180a81925bf335d6e5d61f5a06 (diff)
downloadeclipse.platform.text-I20120510-2100.tar.gz
eclipse.platform.text-I20120510-2100.tar.xz
eclipse.platform.text-I20120510-2100.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.java4
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 371a28580..666cc3012 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;
}
/**

Back to the top