Thread: [Megameknet-cvs] MegaMekNET/src/server/campaign/commands SaveCampaignCommand.java,1.1,1.2
Status: Inactive
Brought to you by:
mcwizard
From: Helge R. <mcw...@us...> - 2005-03-29 20:11:17
|
Update of /cvsroot/megameknet/MegaMekNET/src/server/campaign/commands In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11524/src/server/campaign/commands Modified Files: SaveCampaignCommand.java Log Message: prevent a NPE Index: SaveCampaignCommand.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/server/campaign/commands/SaveCampaignCommand.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** SaveCampaignCommand.java 27 Mar 2005 08:36:36 -0000 1.1 --- SaveCampaignCommand.java 29 Mar 2005 20:10:37 -0000 1.2 *************** *** 54,61 **** } else throw new IllegalUsageException(); ! send(saveString+" saved!",userName); } catch (RuntimeException e) { e.printStackTrace(); ! send("XML saving failed because: "+e, userName); } } --- 54,63 ---- } else throw new IllegalUsageException(); ! if (userName != null) ! send(saveString+" saved!",userName); } catch (RuntimeException e) { e.printStackTrace(); ! if (userName != null) ! send("XML saving failed because: "+e, userName); } } |