marmotta-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ja...@apache.org
Subject [2/3] git commit: Avoid possible NPE for unknown binary formats
Date Tue, 02 Sep 2014 14:42:09 GMT
Avoid possible NPE for unknown binary formats

Project: http://git-wip-us.apache.org/repos/asf/marmotta/repo
Commit: http://git-wip-us.apache.org/repos/asf/marmotta/commit/c225e349
Tree: http://git-wip-us.apache.org/repos/asf/marmotta/tree/c225e349
Diff: http://git-wip-us.apache.org/repos/asf/marmotta/diff/c225e349

Branch: refs/heads/MARMOTTA-525
Commit: c225e3499eb640043eee4d2ce2e8aa66a3a4cc57
Parents: bab0725
Author: Jakob Frank <jakob@apache.org>
Authored: Tue Sep 2 16:37:29 2014 +0200
Committer: Jakob Frank <jakob@apache.org>
Committed: Tue Sep 2 16:37:29 2014 +0200

----------------------------------------------------------------------
 .../main/java/org/apache/marmotta/platform/ldp/util/LdpUtils.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/marmotta/blob/c225e349/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/util/LdpUtils.java
----------------------------------------------------------------------
diff --git a/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/util/LdpUtils.java
b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/util/LdpUtils.java
index 039c923..f9daa15 100644
--- a/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/util/LdpUtils.java
+++ b/platform/marmotta-ldp/src/main/java/org/apache/marmotta/platform/ldp/util/LdpUtils.java
@@ -76,7 +76,7 @@ public class LdpUtils {
         try {
             return allTypes.forName(mimeType).getExtension();
         } catch (MimeTypeException e) {
-            return null; //FIXME
+            return ".data";
         }
     }
 


Mime
View raw message