diff --git a/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java b/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java index 244903e..f8b8c65 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java @@ -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