We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b45313b commit 4ea5058Copy full SHA for 4ea5058
1 file changed
workmanager_android/android/src/main/kotlin/dev/fluttercommunity/workmanager/BackgroundWorker.kt
@@ -90,6 +90,12 @@ class BackgroundWorker(
90
) {
91
val callbackHandle = SharedPreferenceHelper.getCallbackHandle(applicationContext)
92
val callbackInfo = FlutterCallbackInformation.lookupCallbackInformation(callbackHandle)
93
+
94
+ if (callbackInfo == null) {
95
+ Log.e(TAG, "Failed to resolve Dart callback for handle $callbackHandle.")
96
+ return Result.failure()
97
+ }
98
99
val dartBundlePath = flutterLoader.findAppBundlePath()
100
101
if (isInDebug) {
0 commit comments