[Android] SendCrashActivity: fix crash on leave

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


vlc-android | branch: master | Geoffrey Métais <geoffrey.metais at gmail.com> | Wed Aug  7 12:10:01 2019 +0200| [a343a2a8808ab629eef76a82147e978f7e5537d8] | committer: Geoffrey Métais

SendCrashActivity: fix crash on leave

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

 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 46fd35c55..815e93f24 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