diff --git a/engine/src/flutter/shell/platform/android/android_surface_vk_impeller.cc b/engine/src/flutter/shell/platform/android/android_surface_vk_impeller.cc index 780d3f00671..2ecea59723f 100644 --- a/engine/src/flutter/shell/platform/android/android_surface_vk_impeller.cc +++ b/engine/src/flutter/shell/platform/android/android_surface_vk_impeller.cc @@ -95,7 +95,8 @@ bool AndroidSurfaceVKImpeller::SetNativeWindow( return false; } - impeller::CreateTransactionCB cb = [jni_facade]() { + impeller::CreateTransactionCB cb = [jni_facade = jni_facade]() { + FML_CHECK(jni_facade) << "JNI was nullptr"; ASurfaceTransaction* tx = jni_facade->createTransaction(); if (tx == nullptr) { return impeller::android::SurfaceTransaction();