Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2016-12-11 14:16:11 -0500
committerStephan Herrmann2017-01-15 13:15:23 -0500
commita9e0083fd7f9d996a9a979fd415064cb7a27d7a4 (patch)
treed13be1e000b22ebff0bf3e3ff1dc8c6521a4c234
parentc39ac67147d5b78f3f03b3599a96f1976980d04f (diff)
downloadorg.eclipse.objectteams-a9e0083fd7f9d996a9a979fd415064cb7a27d7a4.tar.gz
org.eclipse.objectteams-a9e0083fd7f9d996a9a979fd415064cb7a27d7a4.tar.xz
org.eclipse.objectteams-a9e0083fd7f9d996a9a979fd415064cb7a27d7a4.zip
Bug 509044: NullPointerException in TypeModel.getMembers
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/model/TypeModel.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/model/TypeModel.java b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/model/TypeModel.java
index 0dda30c81..09c4f6691 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/model/TypeModel.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/model/TypeModel.java
@@ -204,7 +204,7 @@ public class TypeModel extends ModelElement {
AbstractMethodDeclaration[] methods = this._ast.methods;
if (methods != null) {
for (int i=0; i<methods.length; i++) {
- if (methods[i].scope != null) {
+ if (methods[i] != null && methods[i].scope != null) {
ClassScope[] scopes = methods[i].scope.getAllLocalTypes();
for (int j=0; j<scopes.length; j++) {
TypeDeclaration type = scopes[j].referenceContext;

Back to the top