Bug 459512 - When ClassCircularity fails team activation, the freshly
created team
instance is leaking
- typo fix
diff --git a/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBinding.java b/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBinding.java
index 8516314..95b8525 100644
--- a/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBinding.java
+++ b/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/internal/osgi/weaving/AspectBinding.java
@@ -224,7 +224,7 @@
 			Class<? extends Team> cl = this.teamClass;
 			assert cl != null : "Precondition";
 			@SuppressWarnings("null")@NonNull Team nnInst = cl.newInstance();
-			TransformerPlugin.registerTeamInstance(instance);
+			TransformerPlugin.registerTeamInstance(nnInst);
 			log(IStatus.INFO, "Instantiated team "+teamName);
 			return this.instance = nnInst;
 		}
diff --git a/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/otequinox/TransformerPlugin.java b/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/otequinox/TransformerPlugin.java
index cfa532c..b90b5bf 100644
--- a/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/otequinox/TransformerPlugin.java
+++ b/plugins/org.eclipse.objectteams.otequinox/src/org/eclipse/objectteams/otequinox/TransformerPlugin.java
@@ -238,7 +238,7 @@
 		return result;
 	}
 
-	public static synchronized void registerTeamInstance(Team instance) {
+	public static synchronized void registerTeamInstance(@NonNull Team instance) {
 		plugin.teamInstances.add(instance);
 	}
 	/**