[Android] SendCrashActivity: fix crash on leave

Geoffrey Métais git at videolan.org
Thu Aug 8 13:54:08 CEST 2019


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

SendCrashActivity: fix crash on leave

(cherry picked from commit a343a2a8808ab629eef76a82147e978f7e5537d8)

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

 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