Merge branch 'hotfix-v5.7.1-492-fix_nullpointer_crash' into 'release'

处理空指针异常

See merge request halo/android/assistant-android!235
This commit is contained in:
陈君陶
2022-04-12 09:48:59 +08:00

View File

@ -402,7 +402,7 @@ open class NewCommentFragment : ListFragment<CommentEntity, NewCommentViewModel>
toast("操作太快,慢一点嘛")
}
}
mCachedView.findViewById<View>(R.id.comment_close_iv).setOnClickListener {
mCachedView.findViewById<View>(R.id.comment_close_iv)?.setOnClickListener {
val fragment = parentFragment
if (fragment is BaseDialogWrapperFragment) {
fragment.dismiss()