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)) {