[Android] Fix UninitializedPropertyAccessException
Nicolas Pomepuy
git at videolan.org
Tue Aug 13 10:17:03 CEST 2019
vlc-android | branch: master | Nicolas Pomepuy <nicolas.pomepuy at gmail.com> | Fri Aug 9 07:00:31 2019 +0200| [332d88b4579c959cb7053ab1d5149b36c7e33e2a] | committer: Nicolas Pomepuy
Fix UninitializedPropertyAccessException
> https://code.videolan.org/videolan/vlc-android/commit/332d88b4579c959cb7053ab1d5149b36c7e33e2a
---
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