You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by ma...@apache.org on 2015/10/15 18:28:27 UTC

[4/4] oodt git commit: OODT-755 fix exception

OODT-755 fix exception


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

Branch: refs/heads/OODT-755
Commit: c8804a9b15186704ed891e006b7b1155eb6f1904
Parents: 3ecdfb9
Author: Tom Barber <to...@analytical-labs.com>
Authored: Thu Oct 15 17:27:29 2015 +0100
Committer: Tom Barber <to...@analytical-labs.com>
Committed: Thu Oct 15 17:27:29 2015 +0100

----------------------------------------------------------------------
 .../org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/oodt/blob/c8804a9b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
----------------------------------------------------------------------
diff --git a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
index e3c4bcf..f22ab6c 100644
--- a/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
+++ b/filemgr/src/main/java/org/apache/oodt/cas/filemgr/system/XmlRpcFileManager.java
@@ -1060,12 +1060,13 @@ public class XmlRpcFileManager {
         return metadata;
     }
 
-    private Metadata runExtractors(Product product, Metadata metadata) {
+    private Metadata runExtractors(Product product, Metadata metadata) throws CatalogException {
         // make sure that the product type definition is present
         if(product.getProductType() == null){
           LOG.log(Level.SEVERE, "Failed to run extractor for: "+product.getProductId()+":"+product
               .getProductName()+" product type cannot be null.");
-          return null;
+          throw new CatalogException("Failed to run extractor for: "+product.getProductId()+":"+product
+              .getProductName()+" product type cannot be null.");
         }
         try {
             product.setProductType(repositoryManager.getProductTypeById(product