Fixes #426: Crash fix caused by NPE

This commit is contained in:
maskara 2017-03-12 14:18:41 +05:30
parent 46f081d652
commit 6cecaf9e8c
2 changed files with 10 additions and 3 deletions

View file

@ -312,4 +312,8 @@ public class Utils {
}
return title;
}
public static boolean isNullOrWhiteSpace(String value) {
return value == null || value.trim().isEmpty();
}
}