                 continue
             }
             var fields: NSArray = line.stringByReplacingOccurrencesOfString("\\s+", withString:" ", options: .RegularExpressionSearch, range: NSMakeRange(0, line.length)).componentsSeparatedByString(" ")
-            map[fields.firstObject as NSString] = fields.subarrayWithRange(NSMakeRange(1, fields.count-1))
+            if fields.firstObject?.length>0 {
+                map[fields.firstObject as NSString] = fields.subarrayWithRange(NSMakeRange(1, fields.count-1))
+            }
         }
         self.define(map)
         

        
        for type in map{
            var exts: NSArray = type.value as NSArray
            for var index = 0;index < exts.count; ++index {
                self.types[exts[index] as NSString] = type.key as? NSString
            }

    func lookupExtension(mimeType: NSString) -> NSString{
        return self.extensions[mimeType]!
    }
}
