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