fix NPE when writing Resolver.Result to disk
This commit is contained in:
parent
74048593ff
commit
e62b0ca320
|
@ -311,7 +311,7 @@ public class Resolver {
|
||||||
|
|
||||||
public ContentValues toContentValues() {
|
public ContentValues toContentValues() {
|
||||||
final ContentValues contentValues = new ContentValues();
|
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(HOSTNAME, hostname.toString());
|
||||||
contentValues.put(PORT, port);
|
contentValues.put(PORT, port);
|
||||||
contentValues.put(PRIORITY, priority);
|
contentValues.put(PRIORITY, priority);
|
||||||
|
|
Loading…
Reference in New Issue