From 9627d73f6860004f4fecacec671916cb11c2f059 Mon Sep 17 00:00:00 2001 From: Conny Duck Date: Tue, 27 Nov 2018 21:18:21 +0100 Subject: [PATCH] fix NullPointerException in ViewImageFragment --- .../java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt index 84c2ed66..fe1e1a50 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt @@ -90,7 +90,7 @@ class ViewImageFragment : ViewMediaFragment() { } else { // if view is not attached yet, wait for an attachment and // start transition when it's finally ready. - photoView.addOnAttachStateChangeListener( + photoView?.addOnAttachStateChangeListener( object : View.OnAttachStateChangeListener { override fun onViewAttachedToWindow(v: View?) { finishLoadingSuccessfully()