aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorChristian Schneppe <christian@pix-art.de>2018-01-27 21:36:02 +0100
committerChristian Schneppe <christian@pix-art.de>2018-01-27 21:36:02 +0100
commit3d18291b6ef0df2f693efb872bc9bfddec9a864a (patch)
tree8e377310001ba3b07cbfb0399dda7a9409295328 /src/main
parent2c739c5f96e613fc49aa202fa7037e07912d74b1 (diff)
fix NPE when writing Resolver.Result to disk
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/de/pixart/messenger/utils/Resolver.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/de/pixart/messenger/utils/Resolver.java b/src/main/java/de/pixart/messenger/utils/Resolver.java
index e4a612f5f..32ed1e7c7 100644
--- a/src/main/java/de/pixart/messenger/utils/Resolver.java
+++ b/src/main/java/de/pixart/messenger/utils/Resolver.java
@@ -311,7 +311,7 @@ public class Resolver {
public ContentValues toContentValues() {
final ContentValues contentValues = new ContentValues();
- contentValues.put(IP, ip.getAddress());
+ contentValues.put(IP, ip == null ? null : ip.getAddress());
contentValues.put(HOSTNAME, hostname.toString());
contentValues.put(PORT, port);
contentValues.put(PRIORITY, priority);