diff --git a/android/src/main/java/io/csie/kudo/reactnative/v8/executor/V8Module.java b/android/src/main/java/io/csie/kudo/reactnative/v8/executor/V8Module.java index 7ce1d0f..72cf313 100644 --- a/android/src/main/java/io/csie/kudo/reactnative/v8/executor/V8Module.java +++ b/android/src/main/java/io/csie/kudo/reactnative/v8/executor/V8Module.java @@ -58,7 +58,11 @@ public boolean queueIdle() { final RuntimeExecutor runtimeExecutor = getReactApplicationContext() .getCatalystInstance() .getRuntimeExecutor(); - V8Executor.onMainLoopIdle(runtimeExecutor); + + if (runtimeExecutor != null) { + V8Executor.onMainLoopIdle(runtimeExecutor); + } + mLastMainLoopIdleCallbackTime = SystemClock.uptimeMillis(); } return true;