Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephan Herrmann2013-12-14 17:43:51 +0000
committerStephan Herrmann2013-12-14 17:43:51 +0000
commit5826a7ef2a82caf3edfffe567ba616043ab339bb (patch)
tree9022c7e12b9e00101cd0afb9b91dc41504994c00
parent8c01c7434af86e9e5d7b9698b88e4f4d51f1989f (diff)
downloadeclipse.jdt.core-5826a7ef2a82caf3edfffe567ba616043ab339bb.tar.gz
eclipse.jdt.core-5826a7ef2a82caf3edfffe567ba616043ab339bb.tar.xz
eclipse.jdt.core-5826a7ef2a82caf3edfffe567ba616043ab339bb.zip
Another NPE fix (detected by way of debug sysouts)
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java
index 88ccaacdd8..2357b73c2b 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java
@@ -481,7 +481,7 @@ public TypeBinding resolveType(BlockScope scope) {
scope.problemReporter().unnecessaryTypeArgumentsForMethodInvocation(this.binding, this.genericTypeArguments, this.typeArguments);
}
if (!isDiamond && this.resolvedType.isParameterizedTypeWithActualArguments()) {
- checkTypeArgumentRedundancy((ParameterizedTypeBinding) this.resolvedType, null, argumentTypes, scope);
+ checkTypeArgumentRedundancy((ParameterizedTypeBinding) this.resolvedType, this.resolvedType.enclosingType(), argumentTypes, scope);
}
if (compilerOptions.isAnnotationBasedNullAnalysisEnabled && (this.binding.tagBits & TagBits.IsNullnessKnown) == 0) {
new ImplicitNullAnnotationVerifier(scope.environment(), compilerOptions.inheritNullAnnotations)

Back to the top