mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Fixed #69
This commit is contained in:
parent
e56f8b88dd
commit
f21dba23cc
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ public class MediaDetailFragment extends SherlockFragment {
|
|||
private String prettyLicense(Media media) {
|
||||
String licenseKey = media.getLicense();
|
||||
Log.d("Commons", "Media license is: " + licenseKey);
|
||||
if (licenseKey.equals("")) {
|
||||
if (licenseKey == null || licenseKey.equals("")) {
|
||||
return getString(R.string.detail_license_empty);
|
||||
}
|
||||
License licenseObj = licenseList.get(licenseKey);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue