From: David ‘Bombe’ Roden Date: Wed, 13 Oct 2010 04:28:07 +0000 (+0200) Subject: Don’t try to parse null values. X-Git-Tag: 0.1-RC1~523 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=0fe9320336b76d5e9c90b78b98acd43eb3c3be31;p=Sone.git Don’t try to parse null values. --- 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);