Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornsandonato2011-01-05 18:41:21 +0000
committernsandonato2011-01-05 18:41:21 +0000
commit5676a49c5253e67a63a70616b726784de38d9c8f (patch)
tree3c5fd202a1347a81d51dfff9c9a2405a4bdb91d2
parentc0abad3bd150ffd5c8c1c2833584a67e22a8895d (diff)
downloadwebtools.sourceediting-5676a49c5253e67a63a70616b726784de38d9c8f.tar.gz
webtools.sourceediting-5676a49c5253e67a63a70616b726784de38d9c8f.tar.xz
webtools.sourceediting-5676a49c5253e67a63a70616b726784de38d9c8f.zip
[333452] NullPointerException on using content assist.
-rw-r--r--bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/contentassist/CustomCompletionProposal.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/contentassist/CustomCompletionProposal.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/contentassist/CustomCompletionProposal.java
index ba738a015a..f39ba52bd8 100644
--- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/contentassist/CustomCompletionProposal.java
+++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/contentassist/CustomCompletionProposal.java
@@ -310,7 +310,7 @@ public class CustomCompletionProposal implements ICompletionProposal, ICompletio
return false;
boolean validated = startsWith(document, offset, fDisplayString);
- if (fUpdateLengthOnValidate) {
+ if (fUpdateLengthOnValidate && event != null) {
fReplacementLength += event.fText.length() - event.fLength; //adjust the replacement length by the event's text replacement
}
return validated;

Back to the top