Added null-check to prevent errors in eclipse when working on incomplete files

This commit is contained in:
Roel Spilker committed 2012-01-23 23:10:56 +01:00
1 parent 05a156deaa
commit 3e7bb145d3
1 file changed
+1
@@ -281,6 +281,7 @@ public class PatchDelegate {
List<BindingTuple> methodsToDelegateForThisAnn = new ArrayList<BindingTuple>();
if (rawTypes.isEmpty()) {
if (method.returnType == null) continue;
addAllMethodBindings(methodsToDelegateForThisAnn, method.returnType.resolveType(decl.initializerScope), banList, method.selector, ann);
} else {
for (ClassLiteralAccess cla : rawTypes) {