freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java
changeset 220 fca206f8e5ef
parent 212 9dc1915485ba
child 233 ecddc9f373bb
     1.1 --- a/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java	Wed Jan 13 14:36:17 2010 +0100
     1.2 +++ b/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java	Sun Jan 17 14:37:01 2010 +0100
     1.3 @@ -478,8 +478,8 @@
     1.4              apiServer = null;
     1.5          }
     1.6  
     1.7 -        if (remoteStatistics == null) {
     1.8 -            throw new IllegalArgumentException("Provide URL to API server"); // NOI18N
     1.9 +        if (remoteStatistics != null) {
    1.10 +            stat = client1.resource(new URI(remoteStatistics));
    1.11          } else {
    1.12              stat = client1.resource(new URI("http://localhost:9444"));
    1.13          }