Revision: 17661
          http://sourceforge.net/p/gate/code/17661
Author:   markagreenwood
Date:     2014-03-14 15:22:24 +0000 (Fri, 14 Mar 2014)
Log Message:
-----------
use the right key when accessing the map would help

Modified Paths:
--------------
    gate/trunk/src/main/gate/DocumentFormat.java

Modified: gate/trunk/src/main/gate/DocumentFormat.java
===================================================================
--- gate/trunk/src/main/gate/DocumentFormat.java        2014-03-14 14:59:44 UTC 
(rev 17660)
+++ gate/trunk/src/main/gate/DocumentFormat.java        2014-03-14 15:22:24 UTC 
(rev 17661)
@@ -605,7 +605,8 @@
    *         the MIME type does not have a registered DocumentFormat
    */
   public static DocumentFormat getDocumentFormat(MimeType mimeType) {
-    return mimeString2ClassHandlerMap.get(mimeType);
+    return mimeString2ClassHandlerMap.get(mimeType.getType() + "/"
+            + mimeType.getSubtype());
   }
 
   /**

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs

Reply via email to