Revision: 1483
http://rails.svn.sourceforge.net/rails/?rev=1483&view=rev
Author: evos
Date: 2011-02-08 19:52:24 +0000 (Tue, 08 Feb 2011)
Log Message:
-----------
Quick fix for NullPointerException when file is saved before the very first player action.
Modified Paths:
--------------
trunk/18xx/rails/game/ReportBuffer.java
Modified: trunk/18xx/rails/game/ReportBuffer.java
===================================================================
--- trunk/18xx/rails/game/ReportBuffer.java 2011-02-06 19:29:06 UTC (rev 1482)
+++ trunk/18xx/rails/game/ReportBuffer.java 2011-02-08 19:52:24 UTC (rev 1483)
@@ -295,6 +295,7 @@
int index = currentPlayerIndex;
do {
ReportItem item = instance.reportItems.get(index);
+ if (item == null) continue;
String text = item.toText();
String comment = instance.commentItems.get(index);
if (text == null && comment == null) continue;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|