Fixed nullpointer exception in SyndTypeUtils
This commit is contained in:
parent
a62cf5d14c
commit
900bb9da7c
|
@ -28,7 +28,7 @@ public class SyndTypeUtils {
|
|||
if (extension != null) {
|
||||
String type = MimeTypeMap.getSingleton().getMimeTypeFromExtension(
|
||||
extension);
|
||||
if (typeValid(type)) {
|
||||
if (type != null && typeValid(type)) {
|
||||
return type;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue