diff --git a/app/src/main/java/io/legado/app/ui/about/AppLogDialog.kt b/app/src/main/java/io/legado/app/ui/about/AppLogDialog.kt index 56d343da2..3a332b49f 100644 --- a/app/src/main/java/io/legado/app/ui/about/AppLogDialog.kt +++ b/app/src/main/java/io/legado/app/ui/about/AppLogDialog.kt @@ -81,8 +81,10 @@ class AppLogDialog : BaseDialogFragment() { override fun registerListener(holder: ItemViewHolder, binding: ItemAppLogBinding) { binding.root.onClick { - getItem(holder.layoutPosition)?.let { - TextDialog.show(childFragmentManager, it.third?.stackTraceToString()) + getItem(holder.layoutPosition)?.let { item -> + item.third?.let { + TextDialog.show(childFragmentManager, it.stackTraceToString()) + } } } }