[Android] Fix UninitializedPropertyAccessException

Nicolas Pomepuy git at videolan.org
Tue Aug 13 10:27:01 CEST 2019


vlc-android | branch: 3.2.x | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Fri Aug  9 07:00:31 2019 +0200| [58ba9ca982b5be105692772b59d690d18b4f1eeb] | committer: Geoffrey Métais

Fix UninitializedPropertyAccessException

(cherry picked from commit 332d88b4579c959cb7053ab1d5149b36c7e33e2a)

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

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

diff --git a/vlc-android/src/org/videolan/vlc/gui/DebugLogActivity.kt b/vlc-android/src/org/videolan/vlc/gui/DebugLogActivity.kt
index 3ce21baf3..fca5e86dd 100644
--- a/vlc-android/src/org/videolan/vlc/gui/DebugLogActivity.kt
+++ b/vlc-android/src/org/videolan/vlc/gui/DebugLogActivity.kt
@@ -138,7 +138,7 @@ class DebugLogActivity : FragmentActivity(), DebugLogService.Client.Callback {
 
     override fun onLog(msg: String) {
         logList.add(msg)
-        logAdapter.notifyDataSetChanged()
+        if (::logAdapter.isInitialized) logAdapter.notifyDataSetChanged()
         setOptionsButtonsEnabled(true)
     }
 



More information about the Android mailing list