The patch with better formatting:
Index: src/se/unlogic/eagledns/EagleDNS.java
===================================================================
--- src/se/unlogic/eagledns/EagleDNS.java (revision 149)
+++ src/se/unlogic/eagledns/EagleDNS.java (working copy)
@@ -138,7 +138,7 @@
List<InetAddress> addresses = new ArrayList<InetAddress>();
List<String> addressStrings = configFile.getStrings("/Config/System/Address");
- if (addressStrings.isEmpty()) {
+ if (addressStrings == null || addressStrings.isEmpty()) {
log.debug("No addresses found in config, listening on all addresses (0.0.0.0)");
addresses.add(Address.getByAddress("0.0.0.0")); |