fix NPE when writing Resolver.Result to disk

This commit is contained in:
Christian Schneppe 2018-01-27 21:36:02 +01:00
parent 2c739c5f96
commit 3d18291b6e

View file

@ -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);