uima-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r537237 - /incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/impl/CustomResourceFactory_impl.java
Date Fri, 11 May 2007 17:02:27 GMT
Author: eae
Date: Fri May 11 10:02:25 2007
New Revision: 537237

URL: http://svn.apache.org/viewvc?view=rev&rev=537237
Log:
Rather than crash, ignore when aAdditionalParams is null

Modified:
    incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/impl/CustomResourceFactory_impl.java

Modified: incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/impl/CustomResourceFactory_impl.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/impl/CustomResourceFactory_impl.java?view=diff&rev=537237&r1=537236&r2=537237
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/impl/CustomResourceFactory_impl.java
(original)
+++ incubator/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/impl/CustomResourceFactory_impl.java
Fri May 11 10:02:25 2007
@@ -44,7 +44,10 @@
       //check additional params map for ResourceManager, and use the UIMA extension ClassLoader
       //if one exists
       ClassLoader loader = null;
-      ResourceManager resMgr = (ResourceManager)aAdditionalParams.get(Resource.PARAM_RESOURCE_MANAGER);
+      ResourceManager resMgr = null;
+      if (aAdditionalParams != null) {
+        resMgr = (ResourceManager)aAdditionalParams.get(Resource.PARAM_RESOURCE_MANAGER);
+      }
       if (resMgr != null) {
         resMgr.getExtensionClassLoader();
       }



Mime
View raw message