Skip to content

Commit

Permalink
Fix to sporadic NullPointerException issue
Browse files Browse the repository at this point in the history
Fix to sporadic NullPointerException issue found at tlenclos#117 (comment)
  • Loading branch information
waskosky authored Apr 12, 2019
1 parent d0f7ab7 commit 0e44b27
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ public ReactApplicationContext getReactApplicationContextModule() {
}

public Class<?> getClassActivity() {
if (this.clsActivity == null) {
this.clsActivity = getCurrentActivity().getClass();
Activity activity = getCurrentActivity();
if (this.clsActivity == null && activity != null) {
this.clsActivity = activity.getClass();
}
return this.clsActivity;
}
Expand Down

0 comments on commit 0e44b27

Please sign in to comment.