release 0.9.6
[debian/openrocket] / src / net / sf / openrocket / gui / main / ComponentAddButtons.java
index 8e67b6a599655d80c1fa0e75bb6cdfc2fbfb8f25..ba4111abd29f31d3410c7093a776252cf932a5ac 100644 (file)
@@ -403,7 +403,7 @@ public class ComponentAddButtons extends JPanel implements Scrollable {
                                throw new BugException("Could not construct new instance of class "+
                                                constructor,e);
                        } catch (InvocationTargetException e) {
-                               throw Reflection.handleInvocationTargetException(e);
+                               throw Reflection.handleWrappedException(e);
                        }
                        
                        // Next undo position is set by opening the configuration dialog