Update of /cvsroot/rails/18xx/rails/ui/swing
In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv7048/rails/ui/swing
Modified Files:
ORUIManager.java
Log Message:
A null Destinations action is no longer sent to the server.
Index: ORUIManager.java
===================================================================
RCS file: /cvsroot/rails/18xx/rails/ui/swing/ORUIManager.java,v
retrieving revision 1.38
retrieving revision 1.39
diff -C2 -d -r1.38 -r1.39
*** ORUIManager.java 30 Dec 2009 18:37:19 -0000 1.38
--- ORUIManager.java 31 Dec 2009 09:59:05 -0000 1.39
***************
*** 456,459 ****
--- 456,464 ----
}
}
+
+ // Prevent that a null action gets processed
+ if (action.getReachedCompanies() == null
+ || action.getReachedCompanies().isEmpty()) return;
+
if (orWindow.process(action)) {
updateMessage();
|