Skip to content

Commit

Permalink
fix(android): fix npe when preload
Browse files Browse the repository at this point in the history
  • Loading branch information
iPel authored and zealotchen0 committed Oct 27, 2023
1 parent 2220cda commit bdc3fa4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,9 @@ public void run() {

private void notifyModuleLoaded(final ModuleLoadStatus statusCode, final String msg,
final HippyRootView hippyRootView) {
mLoadModuleListener.onLoadCompletedInCurrentThread(statusCode, msg, hippyRootView);
if (mLoadModuleListener != null) {
mLoadModuleListener.onLoadCompletedInCurrentThread(statusCode, msg, hippyRootView);
}
Runnable action = new Runnable() {
@Override
public void run() {
Expand Down

0 comments on commit bdc3fa4

Please sign in to comment.