mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 23:27:33 +00:00
Prevent NPE when thumbnail click not set
Fixes #3042 Fixes #3044 Closes #3046 // FREEBIE
This commit is contained in:

committed by
Moxie Marlinspike

parent
d8521637bb
commit
a330f6f689
@@ -177,7 +177,11 @@ public class ThumbnailView extends ForegroundImageView {
|
||||
|
||||
@Override
|
||||
public void onClick(View view) {
|
||||
listener.onClick(view, slide);
|
||||
if (listener != null) {
|
||||
listener.onClick(view, slide);
|
||||
} else {
|
||||
Log.w(TAG, "onClick, but no thumbnail click listener attached.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user