updates for 0.9.4
[debian/openrocket] / src / net / sf / openrocket / rocketcomponent / Transition.java
index 5478545fe00f0cc74168b2a4aa1ba980c0b3fa28..f598ad1eeb6c5500a8be3305990f5c78245dbf44 100644 (file)
@@ -171,6 +171,9 @@ public class Transition extends SymmetricComponent {
        }
        
        public void setType(Shape type) {
+               if (type == null) {
+                       throw new IllegalArgumentException("BUG:  setType called with null argument");
+               }
                if (this.type == type)
                        return;
                this.type = type;