projects
/
debian
/
openrocket
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
updates for 0.9.4
[debian/openrocket]
/
src
/
net
/
sf
/
openrocket
/
rocketcomponent
/
Transition.java
diff --git
a/src/net/sf/openrocket/rocketcomponent/Transition.java
b/src/net/sf/openrocket/rocketcomponent/Transition.java
index 5478545fe00f0cc74168b2a4aa1ba980c0b3fa28..f598ad1eeb6c5500a8be3305990f5c78245dbf44 100644
(file)
--- a/
src/net/sf/openrocket/rocketcomponent/Transition.java
+++ b/
src/net/sf/openrocket/rocketcomponent/Transition.java
@@
-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;