From 2fa6b4bd79eab2b8d58a5d9be162c1e3e5215c4c Mon Sep 17 00:00:00 2001 From: Osei Fortune Date: Mon, 7 Mar 2022 13:02:12 -0400 Subject: [PATCH] Update a_sync.rs --- .../ui-mobile-base/nativescript_common/src/android/fs/a_sync.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/ui-mobile-base/nativescript_common/src/android/fs/a_sync.rs b/packages/ui-mobile-base/nativescript_common/src/android/fs/a_sync.rs index 854a0f872..5b20eb2b8 100644 --- a/packages/ui-mobile-base/nativescript_common/src/android/fs/a_sync.rs +++ b/packages/ui-mobile-base/nativescript_common/src/android/fs/a_sync.rs @@ -1624,7 +1624,7 @@ pub extern "system" fn Java_org_nativescript_widgets_filesystem_FileSystem_nativ let callback = AsyncClosure::<(), std::io::Error>::new(Box::new(move |_, error| { if let Some(error) = error { on_success.on_error(jni::objects::JValue::Object( - error_to_jstring(error.unwrap()).as_obj(), + error_to_jstring(error).as_obj(), )) } else { on_success.on_success(JObject::null().into())