| commit | 0fe190432007cb6ef260a4bf88602cc5a0df6dad | [log] [tgz] |
|---|---|---|
| author | Stephan Herrmann <stephan.herrmann@berlin.de> | Tue Jan 14 13:43:50 2020 +0100 |
| committer | Stephan Herrmann <stephan.herrmann@berlin.de> | Tue Jan 14 13:43:50 2020 +0100 |
| tree | c3db2b8f1079e5d0b736b98a2245007f2bc9df6c | |
| parent | ceb4818d79ac495c51f188b9fdc631d7d4fcc8d6 [diff] |
Adjust to improved resource leak analysis vis-a-vis role creators NPE-fix
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java index efa9042..317677f 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/FakedTrackingVariable.java
@@ -408,7 +408,8 @@ //{ObjectTeams: role creation is analysed via the original AllocationExpression if (acquisition instanceof RoleConstructorCall) return flowInfo; - if (scope.methodScope().referenceMethod().isGenerated) + AbstractMethodDeclaration referenceMethod = scope.methodScope().referenceMethod(); + if (referenceMethod != null && referenceMethod.isGenerated) return flowInfo; // SH} if (isFluentMethod(acquisition.binding)) {