1.1 --- a/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Sun Sep 13 20:07:32 2009 +0200
1.2 +++ b/freemarkerdor/src/main/java/cz/xelfi/quoridor/freemarkerdor/UI.java Mon Sep 14 16:11:39 2009 +0200
1.3 @@ -76,8 +76,14 @@
1.4 private Viewable checkLogin() {
1.5 if (headers.getCookies().containsKey("login")) {
1.6 String id = headers.getCookies().get("login").getValue();
1.7 - String us = base.path("login").queryParam("id", id).
1.8 - accept(MediaType.TEXT_PLAIN).get(String.class);
1.9 + String us;
1.10 + try {
1.11 + us = base.path("login").queryParam("id", id).
1.12 + accept(MediaType.TEXT_PLAIN).get(String.class);
1.13 + } catch (UniformInterfaceException ex) {
1.14 + ex.printStackTrace();
1.15 + us = "";
1.16 + }
1.17 if (us.length() > 0) {
1.18 user = us;
1.19 uuid = id;