mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 17:27:45 +00:00
Prevent NPE when thumbnail click not set
Fixes #3042 Fixes #3044 Closes #3046 // FREEBIE
This commit is contained in:
parent
d8521637bb
commit
a330f6f689
@ -177,7 +177,11 @@ public class ThumbnailView extends ForegroundImageView {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onClick(View view) {
|
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.");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user