Author: julien_viet
Date: 2010-01-19 16:50:38 -0500 (Tue, 19 Jan 2010)
New Revision: 1384
Modified:
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/LocalImporter.java
Log:
GTNPORTAL-426 : Exception during import gadget resources
Modified:
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/LocalImporter.java
===================================================================
---
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/LocalImporter.java 2010-01-19
16:58:27 UTC (rev 1383)
+++
portal/trunk/component/application-registry/src/main/java/org/exoplatform/application/gadget/LocalImporter.java 2010-01-19
21:50:38 UTC (rev 1384)
@@ -195,6 +195,12 @@
{
String mimeType = getMimeType(name);
+ //
+ if (mimeType == null)
+ {
+ mimeType = "application/octet-stream";
+ }
+
// We can detect encoding for XML files
String encoding = null;
if ("application/xml".equals(mimeType))
Show replies by date