commit | 8260fdf5fe710966b550c6840b2db12d0f1e4553 | [log] [tgz] |
---|---|---|
author | Stephan Herrmann <stephan.herrmann@berlin.de> | Sun Jan 22 22:34:54 2023 +0100 |
committer | Stephan Herrmann <stephan.herrmann@berlin.de> | Sun Jan 22 22:34:54 2023 +0100 |
tree | 378fc0eaf0402b57e9fa98e3928b50222f683417 | |
parent | ee107f3b7e60902082f77987296dbb4a964ece14 [diff] |
Speculative NPE fix, an old log showed NPE below CaptureBinding.initializeBounds(Scope, ParameterizedTypeBinding)
diff --git a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/objectteams/otdt/internal/core/compiler/util/RoleTypeCreator.java b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/objectteams/otdt/internal/core/compiler/util/RoleTypeCreator.java index 5d54580..418e50f 100644 --- a/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/objectteams/otdt/internal/core/compiler/util/RoleTypeCreator.java +++ b/org.eclipse.jdt.core.compiler.batch/src/org/eclipse/objectteams/otdt/internal/core/compiler/util/RoleTypeCreator.java
@@ -603,13 +603,13 @@ } else if (!variableBinding.isFinal()) { if (problemReporter != null) problemReporter.anchorPathNotFinal(null, variableBinding, refBinding.sourceName()); // TODO - return null; + return originalType; } else if ( !(variableBinding instanceof TThisBinding) && !refBinding.isPublic()) { if (problemReporter != null) problemReporter.externalizingNonPublicRole(typedNode, refBinding); - return null; + return originalType; } // delegate to the principal function: