From: Eelco d. H. <ee...@ob...> - 2005-01-10 20:37:36
|
Hi, I'm not sure if this is the right medium for bug reports (if not, what is?), but I've found a straightforward bug in saving a library; in core.Actions in the method saveFrame() a NPE is thrown when the library frame is not selected. In the following snippet: ------------------------------------- static void saveFrame() { try { AbstractLibraryFrame oFrame = (AbstractLibraryFrame) JSLDesktop .getSelectedFrame(); ------------------------------------- the oFrame object will be null if no frame is selected; in the code thereafter no check is done whether oFrame is null, and a NPE will be thrown (either in if (oFrame.getTitle().startsWith("Unsaved ")) or in oFrame.save(); If you check the frame and click 'Save' there is no problem... Best regards, Eelco |