Bug 433137 [otdre] otequinox should support OTDRE via some switch
- NPE prevention
diff --git a/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/transformer/jplis/ObjectTeamsTransformer.java b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/transformer/jplis/ObjectTeamsTransformer.java
index 9fd100e..b95dbce 100644
--- a/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/transformer/jplis/ObjectTeamsTransformer.java
+++ b/plugins/org.eclipse.objectteams.otredyn/src/org/eclipse/objectteams/otredyn/transformer/jplis/ObjectTeamsTransformer.java
@@ -71,7 +71,9 @@
 			t.printStackTrace();
 		}
 		
-		this.boundBaseClassNames.addAll(clazz.getBoundBaseClasses());
+		Collection<String> boundBaseClasses = clazz.getBoundBaseClasses();
+		if (boundBaseClasses != null)
+			this.boundBaseClassNames.addAll(boundBaseClasses);
 
 		return classfileBuffer;
 	}
@@ -137,7 +139,9 @@
 			t.printStackTrace();
 		}
 		
-		this.boundBaseClassNames.addAll(clazz.getBoundBaseClasses());
+		Collection<String> boundBaseClasses = clazz.getBoundBaseClasses();
+		if (boundBaseClasses != null)
+			this.boundBaseClassNames.addAll(boundBaseClasses);
 	}
 	
 	/**