ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seanfi...@apache.org
Subject svn commit: r1697396 - /ctakes/trunk/ctakes-utils/src/main/java/org/apache/ctakes/utils/env/EnvironmentVariable.java
Date Mon, 24 Aug 2015 13:50:45 GMT
Author: seanfinan
Date: Mon Aug 24 13:50:45 2015
New Revision: 1697396

URL: http://svn.apache.org/r1697396
Log:
Added check for uimaContext == null

Modified:
    ctakes/trunk/ctakes-utils/src/main/java/org/apache/ctakes/utils/env/EnvironmentVariable.java

Modified: ctakes/trunk/ctakes-utils/src/main/java/org/apache/ctakes/utils/env/EnvironmentVariable.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-utils/src/main/java/org/apache/ctakes/utils/env/EnvironmentVariable.java?rev=1697396&r1=1697395&r2=1697396&view=diff
==============================================================================
--- ctakes/trunk/ctakes-utils/src/main/java/org/apache/ctakes/utils/env/EnvironmentVariable.java
(original)
+++ ctakes/trunk/ctakes-utils/src/main/java/org/apache/ctakes/utils/env/EnvironmentVariable.java
Mon Aug 24 13:50:45 2015
@@ -40,7 +40,7 @@ public class EnvironmentVariable {
       }
       //Attempt to get it from system properites, env variables
 		String value = getEnv(name);
-      if (value == null) {
+      if ( value == null && context != null ) {
          // Attempt to get it from UIMA Context
          value = (String) context.getConfigParameterValue(name);
       }



Mime
View raw message