diff options
| author | Michael Wilson | 2014-10-16 15:15:39 +0200 |
|---|---|---|
| committer | Michael Wilson | 2014-10-16 15:15:39 +0200 |
| commit | a7b7e76e8e9de04a3cac681f474c1946fe000ea1 (patch) | |
| tree | 2867903d05b9eadeb66278e181a073bb9ccf5c44 /dozentenmodul/src/main/java/util | |
| parent | fehler protokoll erweitert (diff) | |
| parent | fix NPE if no args are given & fake user info for bwIDM tests (diff) | |
| download | tutor-module-a7b7e76e8e9de04a3cac681f474c1946fe000ea1.tar.gz tutor-module-a7b7e76e8e9de04a3cac681f474c1946fe000ea1.tar.xz tutor-module-a7b7e76e8e9de04a3cac681f474c1946fe000ea1.zip | |
Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module
Diffstat (limited to 'dozentenmodul/src/main/java/util')
| -rw-r--r-- | dozentenmodul/src/main/java/util/News.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/util/News.java b/dozentenmodul/src/main/java/util/News.java index aaee7f2a..56b162ac 100644 --- a/dozentenmodul/src/main/java/util/News.java +++ b/dozentenmodul/src/main/java/util/News.java @@ -113,6 +113,12 @@ public class News { private static void init(){ // Document representing the XML Document doc = null; + String satIp = SessionData.session.getServerAdress(); + // 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..."); + return; + } // URL to news API URL url = null; |
