mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
Fixes NPE in Util function
This commit is contained in:
parent
c0ff9ed09c
commit
8dd8e09f2a
4 changed files with 13 additions and 2 deletions
|
|
@ -120,8 +120,9 @@ public class Media implements Parcelable {
|
|||
return localUri;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public String getImageUrl() {
|
||||
if (imageUrl == null) {
|
||||
if (imageUrl == null && this.getFilename() != null) {
|
||||
imageUrl = Utils.makeThumbBaseUrl(this.getFilename());
|
||||
}
|
||||
return imageUrl;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue