Testing synchronization cancelation
[pub/Android/ownCloud.git] / src / eu / alefzero / owncloud / DisplayUtils.java
index bf86c6f..3e9f778 100644 (file)
@@ -100,7 +100,9 @@ public class DisplayUtils {
         if (mimeType2HUmanReadable.containsKey(mimetype)) {\r
             return mimeType2HUmanReadable.get(mimetype);\r
         }\r
-        return mimetype.split("/")[1].toUpperCase() + " file";\r
+        if (mimetype.split("/").length >= 2)\r
+            return mimetype.split("/")[1].toUpperCase() + " file";\r
+        return "Unknown type";\r
     }\r
 \r
     /**\r