From 0fe9320336b76d5e9c90b78b98acd43eb3c3be31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 13 Oct 2010 06:28:07 +0200 Subject: [PATCH] =?utf8?q?Don=E2=80=99t=20try=20to=20parse=20null=20values?= =?utf8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/main/java/net/pterodactylus/sone/core/Core.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/net/pterodactylus/sone/core/Core.java b/src/main/java/net/pterodactylus/sone/core/Core.java index f56c1ce..8563187 100644 --- a/src/main/java/net/pterodactylus/sone/core/Core.java +++ b/src/main/java/net/pterodactylus/sone/core/Core.java @@ -114,7 +114,10 @@ public class Core extends AbstractService { logger.entering(Core.class.getName(), "loadConfiguration()"); /* get names of all local Sones. */ - String allSoneNamesString = configuration.getStringValue("Sone/Names").getValue(""); + String allSoneNamesString = configuration.getStringValue("Sone/Names").getValue(null); + if (allSoneNamesString == null) { + allSoneNamesString = ""; + } List allSoneNames; try { allSoneNames = StringEscaper.parseLine(allSoneNamesString); -- 2.7.4