Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/text/java/JavaMethodCompletionProposal.java')
-rw-r--r--bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/text/java/JavaMethodCompletionProposal.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/text/java/JavaMethodCompletionProposal.java b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/text/java/JavaMethodCompletionProposal.java
index 791022cb..c02e7e09 100644
--- a/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/text/java/JavaMethodCompletionProposal.java
+++ b/bundles/org.eclipse.wst.jsdt.ui/src/org/eclipse/wst/jsdt/internal/ui/text/java/JavaMethodCompletionProposal.java
@@ -198,8 +198,13 @@ public class JavaMethodCompletionProposal extends LazyJavaCompletionProposal {
parameterCount= Signature.getParameterCount(fProposal.getSignature()) % 10; // we don't care about insane methods with >9 parameters
} else {
char[][] params = this.fProposal.getParamaterNames();
- parameterList = CharOperation.concatWith(params, ',');
- parameterCount = params.length % 10; // we don't care about insane methods with >9 parameters
+ if(params != null) {
+ parameterList = CharOperation.concatWith(params, ',');
+ parameterCount = params.length % 10; // we don't care about insane methods with >9 parameters
+ } else {
+ parameterList = new char[0];
+ parameterCount = 0;
+ }
}
StringBuffer buf= new StringBuffer(name.length + 2 + parameterList.length);
@@ -214,7 +219,7 @@ public class JavaMethodCompletionProposal extends LazyJavaCompletionProposal {
/*
* @see org.eclipse.wst.jsdt.internal.ui.text.java.AbstractJavaCompletionProposal#isValidPrefix(java.lang.String)
*/
- protected boolean isValidPrefix(String prefix) {
+ public boolean isValidPrefix(String prefix) {
if (super.isValidPrefix(prefix))
return true;

Back to the top