Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Commit

Permalink
Nullcheck on stop() (wix#666)
Browse files Browse the repository at this point in the history
Avoid NPE when DetoxServerUrl and DetoxSessionId are undefined

(cherry picked from commit 9ee1723)
  • Loading branch information
wiyarmir committed Apr 20, 2018
1 parent fb86165 commit 5e51d2c
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 5e51d2c

Please sign in to comment.