* sanity check

This commit is contained in:
Reinhard Pointner 2015-11-19 12:43:40 +00:00
parent aaa5a71e49
commit 6c85adb431
1 changed files with 1 additions and 1 deletions

View File

@ -777,7 +777,7 @@ public class MediaBindingBean {
public String getUserDefinedLabel() throws IOException {
for (Entry<String, String> it : getUserDefinedArguments().entrySet()) {
if (it.getKey().endsWith("label")) {
if (it.getValue().length() > 0) {
if (it.getValue() != null && it.getValue().length() > 0) {
return it.getValue();
}
}