Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2012-09-22 15:39:34 +0000
committerStephan Herrmann2012-09-22 15:39:34 +0000
commitb7c82ca6824e674944a651d0397cb7edba0afac6 (patch)
treecca6b8545248b43c5d4d72b59d24813adbf55835 /plugins
parentf499efb51735504c3be3abdc41d29893c72ccf46 (diff)
downloadorg.eclipse.objectteams-b7c82ca6824e674944a651d0397cb7edba0afac6.tar.gz
org.eclipse.objectteams-b7c82ca6824e674944a651d0397cb7edba0afac6.tar.xz
org.eclipse.objectteams-b7c82ca6824e674944a651d0397cb7edba0afac6.zip
Avoid an NPE seen when compiling compiler.adaptor with lots of resolve
failures (I had the orig jdt.core not ours in the ws).
Diffstat (limited to 'plugins')
-rw-r--r--plugins/org.eclipse.objectteams.otdt.compiler.adaptor/src/org/eclipse/objectteams/otdt/internal/compiler/adaptor/CheckUniqueCallinCapture.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/org.eclipse.objectteams.otdt.compiler.adaptor/src/org/eclipse/objectteams/otdt/internal/compiler/adaptor/CheckUniqueCallinCapture.java b/plugins/org.eclipse.objectteams.otdt.compiler.adaptor/src/org/eclipse/objectteams/otdt/internal/compiler/adaptor/CheckUniqueCallinCapture.java
index 678e7945f..f6d17cf19 100644
--- a/plugins/org.eclipse.objectteams.otdt.compiler.adaptor/src/org/eclipse/objectteams/otdt/internal/compiler/adaptor/CheckUniqueCallinCapture.java
+++ b/plugins/org.eclipse.objectteams.otdt.compiler.adaptor/src/org/eclipse/objectteams/otdt/internal/compiler/adaptor/CheckUniqueCallinCapture.java
@@ -121,6 +121,8 @@ public team class CheckUniqueCallinCapture {
/** Report one affected base method. */
void reportDuplicateCallinCapture(MethodBinding methodBinding) {
try {
+ if (methodBinding.declaringClass == null)
+ return;
String qualifiedClassName = String.valueOf(methodBinding.declaringClass.readableName());
IType type = this.getJavaBuilder().getJavaProject().findType(qualifiedClassName);
if (type == null)

Back to the top