[Megameknet-cvs] MegaMekNET/src/client/gui CMainFrame.java,1.58,1.59
Status: Inactive
Brought to you by:
mcwizard
From: Helge R. <mcw...@us...> - 2005-03-29 20:10:59
|
Update of /cvsroot/megameknet/MegaMekNET/src/client/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11524/src/client/gui Modified Files: CMainFrame.java Log Message: prevent a NPE Index: CMainFrame.java =================================================================== RCS file: /cvsroot/megameknet/MegaMekNET/src/client/gui/CMainFrame.java,v retrieving revision 1.58 retrieving revision 1.59 diff -C2 -d -r1.58 -r1.59 *** CMainFrame.java 27 Feb 2005 19:17:06 -0000 1.58 --- CMainFrame.java 29 Mar 2005 20:10:48 -0000 1.59 *************** *** 1824,1828 **** dlg.show(); String planetNamestr = (String)combo.getSelectedItem(); ! if (planetNamestr == null || planetNamestr.length() == 0) return; Planet planet = client.getData().getPlanetByName(planetNamestr); --- 1824,1828 ---- dlg.show(); String planetNamestr = (String)combo.getSelectedItem(); ! if (planetNamestr == null || planetNamestr.length() == 0 ) return; Planet planet = client.getData().getPlanetByName(planetNamestr); |