webidor/src/main/java/cz/xelfi/quoridor/webidor/resources/Games.java
changeset 39 6b889f2717e9
parent 38 373f537e0153
child 46 71e4cf307c93
     1.1 --- a/webidor/src/main/java/cz/xelfi/quoridor/webidor/resources/Games.java	Wed Jul 29 17:24:20 2009 +0200
     1.2 +++ b/webidor/src/main/java/cz/xelfi/quoridor/webidor/resources/Games.java	Wed Jul 29 18:48:04 2009 +0200
     1.3 @@ -37,6 +37,7 @@
     1.4  import java.io.IOException;
     1.5  import java.io.PrintWriter;
     1.6  import java.util.ArrayList;
     1.7 +import java.util.Arrays;
     1.8  import java.util.List;
     1.9  import java.util.logging.Level;
    1.10  import java.util.logging.Logger;
    1.11 @@ -148,6 +149,10 @@
    1.12              if (line == null) {
    1.13                  break;
    1.14              }
    1.15 +            line = line.trim();
    1.16 +            if (line.length() == 0) {
    1.17 +                continue;
    1.18 +            }
    1.19              if (line.startsWith("# white: ")) {
    1.20                  white = line.substring(9);
    1.21                  continue;