[BUGFIX] happy eye: null pointer on closed socket if no connection was etablished
This commit is contained in:
parent
3c42a9a80f
commit
91353ad4ae
|
@ -428,7 +428,10 @@ public class Resolver {
|
||||||
@Override
|
@Override
|
||||||
public Result call() throws Exception {
|
public Result call() throws Exception {
|
||||||
this.connect();
|
this.connect();
|
||||||
return this.socket.isConnected() ? this : null;
|
if (this.socket != null && this.socket.isConnected()) {
|
||||||
|
return this ;
|
||||||
|
}
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ContentValues toContentValues() {
|
public ContentValues toContentValues() {
|
||||||
|
|
Loading…
Reference in New Issue