Update of /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/actions
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19561
Modified Files:
FileExitActionListener.java
Log Message:
fixed null-pointer exception when pressing cancel in the exit shield
Index: FileExitActionListener.java
===================================================================
RCS file: /cvsroot/bprocessor/gui/src/net/sourceforge/bprocessor/gui/actions/FileExitActionListener.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** FileExitActionListener.java 8 Feb 2006 10:13:20 -0000 1.4
--- FileExitActionListener.java 2 Mar 2006 13:08:12 -0000 1.5
***************
*** 41,45 ****
null,
"Do you want to save the changes?",
! "Projekt has been changed",
JOptionPane.YES_NO_CANCEL_OPTION);
if (n == 0) {
--- 41,45 ----
null,
"Do you want to save the changes?",
! "Project has been changed",
JOptionPane.YES_NO_CANCEL_OPTION);
if (n == 0) {
***************
*** 60,77 ****
}
}
! }
!
! if (n == 1) {
System.exit(0);
- } else {
- try {
- PersistenceManager.save(new File(Project.getInstance().getSavePath()));
- System.exit(0);
- } catch (Exception ex) {
- log.error("Could not export to file: " +
- new File(Project.getInstance().getSavePath()), ex);
- }
}
-
} else {
System.exit(0);
--- 60,66 ----
}
}
! } else if (n == 1) {
System.exit(0);
}
} else {
System.exit(0);
|