fix NPE when writing Resolver.Result to disk
This commit is contained in:
parent
2c739c5f96
commit
3d18291b6e
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Reference in a new issue