Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgkessler2009-12-21 22:16:29 +0000
committergkessler2009-12-21 22:16:29 +0000
commit34c39d4c3480e704e6868c529e35e1406841f79c (patch)
treebebf6452a58dacb71a7aa729606f08d075ae632c
parent637a07ef27a6b6b6d85ed1d6af74797637c67d3e (diff)
downloadwebtools.jsf-34c39d4c3480e704e6868c529e35e1406841f79c.tar.gz
webtools.jsf-34c39d4c3480e704e6868c529e35e1406841f79c.tar.xz
webtools.jsf-34c39d4c3480e704e6868c529e35e1406841f79c.zip
[Bug 291807] NPE in Signature.getArrayCount
-rw-r--r--jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/JDTBeanProperty.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/JDTBeanProperty.java b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/JDTBeanProperty.java
index 3f92f8361..a43bd72fe 100644
--- a/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/JDTBeanProperty.java
+++ b/jsf/plugins/org.eclipse.jst.jsf.common/src/org/eclipse/jst/jsf/common/util/JDTBeanProperty.java
@@ -121,7 +121,10 @@ public class JDTBeanProperty
*/
public int getArrayCount()
{
- return Signature.getArrayCount(getTypeSignature());
+ final String sig = getTypeSignature();
+ if (sig == null)
+ return 0;
+ return Signature.getArrayCount(sig);
}
/**

Back to the top