[Android] Update SendCrashActivity.kt

Geoffrey Métais git at videolan.org
Wed Aug 7 14:09:09 CEST 2019


vlc-android | branch: master | Geoffrey Métais <geoffrey at videolan.org> | Wed Aug  7 14:04:38 2019 +0200| [1567b7cee3cdedd4342da0b4f70d28e83d103585] | committer: Geoffrey Métais

Update SendCrashActivity.kt

> https://code.videolan.org/videolan/vlc-android/commit/1567b7cee3cdedd4342da0b4f70d28e83d103585
---

 vlc-android/src/org/videolan/vlc/gui/SendCrashActivity.kt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/vlc-android/src/org/videolan/vlc/gui/SendCrashActivity.kt b/vlc-android/src/org/videolan/vlc/gui/SendCrashActivity.kt
index c239b8088..6414e9f35 100644
--- a/vlc-android/src/org/videolan/vlc/gui/SendCrashActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/SendCrashActivity.kt
@@ -159,7 +159,7 @@ class SendCrashActivity : AppCompatActivity(), DebugLogService.Client.Callback {
     }
 
     override fun onDestroy() {
-        client.release()
+        if (::client.isInitialized) client.release()
         super.onDestroy()
     }
 



More information about the Android mailing list