Index: openide/src/org/openide/awt/Actions.java =================================================================== RCS file: /cvs/rave/openide/src/org/openide/awt/Actions.java,v retrieving revision 1.11 diff -u -r1.11 Actions.java --- openide/src/org/openide/awt/Actions.java 5 May 2005 19:12:22 -0000 1.11 +++ openide/src/org/openide/awt/Actions.java 23 Nov 2005 18:39:51 -0000 @@ -307,6 +307,10 @@ * @param action the action */ public Bridge (JComponent comp, Action action) { + if(comp == null || action == null) { + throw new IllegalArgumentException("None of the arguments can be null: comp=" + + comp + ", action=" + action); // NOI18N + } this.comp = comp; this.action = action;