summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Rennie2013-08-21 10:25:07 (EDT)
committerMike Rennie2013-08-21 10:25:59 (EDT)
commit519ecbb200f385c8b0626442126e068f5c36ebe1 (patch)
treed74176d9a722e75795162f514b5a2843d28b7360
parentf1af5f0ce988f1de6c76ddc85fece59e0f11eff7 (diff)
downloadeclipse.pde.ui-519ecbb200f385c8b0626442126e068f5c36ebe1.zip
eclipse.pde.ui-519ecbb200f385c8b0626442126e068f5c36ebe1.tar.gz
eclipse.pde.ui-519ecbb200f385c8b0626442126e068f5c36ebe1.tar.bz2
Bug 415566 - NPE in BaseApiAnalyzer.processType
-rw-r--r--apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/BaseApiAnalyzer.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/BaseApiAnalyzer.java b/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/BaseApiAnalyzer.java
index a471ddb..1064171 100644
--- a/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/BaseApiAnalyzer.java
+++ b/apitools/org.eclipse.pde.api.tools/src/org/eclipse/pde/api/tools/internal/builder/BaseApiAnalyzer.java
@@ -1153,7 +1153,8 @@ public class BaseApiAnalyzer implements IApiAnalyzer {
// member types are processed while processing the compilation unit
ICompilationUnit cunit = type.getCompilationUnit();
if(cunit != null) {
- if(cunit.findPrimaryType().equals(type)){
+ IType ptype = cunit.findPrimaryType();
+ if(type.equals(ptype)) {
// outer types are not member types but are processed with the compilation unit
processType(cunit);
}