From d6225d9c444822df05fa64191f4cba79f1bbd2c1 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 5 Mar 2015 17:30:32 +0100 Subject: [client] Make SessionData a static class instead of a class that doesn't know if it's a singleton or not --- dozentenmodul/src/main/java/util/News.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dozentenmodul/src/main/java/util/News.java') diff --git a/dozentenmodul/src/main/java/util/News.java b/dozentenmodul/src/main/java/util/News.java index 56b162ac..1c32209a 100644 --- a/dozentenmodul/src/main/java/util/News.java +++ b/dozentenmodul/src/main/java/util/News.java @@ -113,7 +113,7 @@ public class News { private static void init(){ // Document representing the XML Document doc = null; - String satIp = SessionData.session.getServerAdress(); + String satIp = SessionData.serverAdress; // sanity check to see if we have the satellite IP if (satIp == null || satIp.isEmpty()) { LOGGER.error("No satellite IP adress is set in SessionData, aborting news fetching..."); @@ -123,7 +123,7 @@ public class News { // URL to news API URL url = null; try { - url = new URL("http://" + SessionData.session.getServerAdress() + "/slx-admin/api.php?do=news"); + url = new URL("http://" + SessionData.serverAdress + "/slx-admin/api.php?do=news"); } catch (MalformedURLException e) { LOGGER.error("Malformated URL to News-API, see trace: ", e); } -- cgit v1.2.3-55-g7522