prevent an NPE under otredyn
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/ast/BaseReference.java b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/ast/BaseReference.java
index 87f25be..f0f85c1 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/ast/BaseReference.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/objectteams/otdt/internal/core/compiler/ast/BaseReference.java
@@ -78,7 +78,8 @@
 		} else if (redirectToTeam) {
 			// use MyTeam.this:
 	        ReferenceBinding receiverType = enclosingType.enclosingType();
-	        this._wrappee = gen.qualifiedThisReference(receiverType);
+	        if (receiverType != null) // null happens when callin method is not inside a role
+	        	this._wrappee = gen.qualifiedThisReference(receiverType);
 		}
 		return enclosingType;
 	}