OSDN Git Service

test caseに対応する修正
[coroid/jnicoapi.git] / src / yukihane / jnicoapi / util / Util.java
index 14c53ce..9859cca 100644 (file)
@@ -20,6 +20,11 @@ public class Util {
     static UserInfo ui = new UserInfo();
 
     public static String getExtention(String contentType) {
+        if(!contentType.contains("/")){
+            logger.error("content type is not defined");
+            return "txt";
+        }
+
         if ("video/flv".equals(contentType) || "video/x-flv".equals(contentType)) {
             return "flv";
         } else if ("video/mp4".equals(contentType)) {