aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzzhongwei2013-03-11 02:48:25 (EDT)
committerzzhongwei2013-03-11 02:48:25 (EDT)
commit3469659296b1bd2574eeb293a38cf41eee7e2ef1 (patch)
tree9b52e252ca4ca87388fc88b1f7ded9cdb8691720
parentb47d175bfe0fb7bd9680467693918ee248557078 (diff)
downloadorg.eclipse.pdt-3469659296b1bd2574eeb293a38cf41eee7e2ef1.zip
org.eclipse.pdt-3469659296b1bd2574eeb293a38cf41eee7e2ef1.tar.gz
org.eclipse.pdt-3469659296b1bd2574eeb293a38cf41eee7e2ef1.tar.bz2
fix NPE
-rw-r--r--plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/documentation/PHPDocumentationContentAccess.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/documentation/PHPDocumentationContentAccess.java b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/documentation/PHPDocumentationContentAccess.java
index 4d57484..4410980 100644
--- a/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/documentation/PHPDocumentationContentAccess.java
+++ b/plugins/org.eclipse.php.ui/src/org/eclipse/php/internal/ui/documentation/PHPDocumentationContentAccess.java
@@ -639,7 +639,8 @@ public class PHPDocumentationContentAccess {
fBuf.append(magicMethod.desc);
fBuf.append(BLOCK_TAG_START);
- if (magicMethod.parameterNames.length > 0) {
+ if (magicMethod.parameterNames != null
+ && magicMethod.parameterNames.length > 0) {
fBuf.append("<dt>"); //$NON-NLS-1$
fBuf.append(PHPDocumentationMessages.JavaDoc2HTMLTextReader_parameters_section);