Fixing a potential NullPointerException at the NetworkService

develop
Nelson R. Perez 2018-09-21 13:29:47 -05:00
parent a28775d464
commit 35570cb4a6
1 changed files with 2 additions and 1 deletions

View File

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