Fixed nullpointer exception in SyndTypeUtils

This commit is contained in:
daniel oeh 2012-10-14 13:50:34 +02:00
parent a62cf5d14c
commit 900bb9da7c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}
}