Fixing a potential NullPointerException at the NetworkService
parent
a28775d464
commit
35570cb4a6
|
@ -215,7 +215,8 @@ public class NetworkService extends Service {
|
|||
if(mWebSocket != null)
|
||||
mWebSocket.close(NORMAL_CLOSURE_STATUS, null);
|
||||
|
||||
nodeLatencyVerifier.stop();
|
||||
if(nodeLatencyVerifier != null)
|
||||
nodeLatencyVerifier.stop();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
|
|
Loading…
Reference in New Issue