File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
engine/src/flutter/shell/platform/android Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -2023,16 +2023,18 @@ ASurfaceTransaction* PlatformViewAndroidJNIImpl::createTransaction() {
2023
2023
JNIEnv* env = fml::jni::AttachCurrentThread ();
2024
2024
2025
2025
auto java_object = java_object_.get (env);
2026
+ if (java_object.is_null ()) {
2027
+ return nullptr ;
2028
+ }
2026
2029
2027
2030
fml::jni::ScopedJavaLocalRef<jobject> transaction (
2028
2031
env,
2029
2032
env->CallObjectMethod (java_object.obj (), g_create_transaction_method));
2030
-
2031
2033
if (transaction.is_null ()) {
2032
2034
return nullptr ;
2033
2035
}
2034
-
2035
2036
FML_CHECK (fml::jni::CheckException (env));
2037
+
2036
2038
return impeller::android::GetProcTable ().ASurfaceTransaction_fromJava (
2037
2039
env, transaction.obj ());
2038
2040
}
You can’t perform that action at this time.
0 commit comments