From: Erik V. <ev...@us...> - 2010-06-10 20:03:40
|
Update of /cvsroot/rails/18xx/rails/game/specific/_1835 In directory sfp-cvsdas-4.v30.ch3.sourceforge.com:/tmp/cvs-serv2281/rails/game/specific/_1835 Modified Files: OperatingRound_1835.java Log Message: Fixed potential nullpointer bug Index: OperatingRound_1835.java =================================================================== RCS file: /cvsroot/rails/18xx/rails/game/specific/_1835/OperatingRound_1835.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** OperatingRound_1835.java 15 May 2010 16:36:09 -0000 1.9 --- OperatingRound_1835.java 10 Jun 2010 20:03:31 -0000 1.10 *************** *** 124,127 **** --- 124,128 ---- if (operatingCompany.getName().equalsIgnoreCase(GameManager_1835.PR_ID)) { for (Player player : deniedIncomeShare.keySet()) { + if (!sharesPerRecipient.containsKey(player)) continue; int share = deniedIncomeShare.get(player); int shares = share / operatingCompany.getShareUnit(); |