Skip to content

Commit

Permalink
Nullcheck on stop() (#666)
Browse files Browse the repository at this point in the history
Avoid NPE when DetoxServerUrl and DetoxSessionId are undefined
  • Loading branch information
wiyarmir authored and rotemmiz committed Apr 14, 2018
1 parent 9662bb8 commit 9ee1723
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ public void run() {
stopping = true;
ReactNativeSupport.currentReactContext = null;
ReactNativeSupport.removeEspressoIdlingResources(reactNativeHostHolder);
wsClient.close();
if (wsClient != null) {
wsClient.close();
}
Looper.myLooper().quit();
}
});
Expand Down

0 comments on commit 9ee1723

Please sign in to comment.