Author: cwiklik
Date: Thu Sep 22 17:46:33 2016
New Revision: 1761985

URL: http://svn.apache.org/viewvc?rev=1761985&view=rev
Log:
UIMA-5018 added check for null 

Modified:
    
uima/uima-as/trunk/uimaj-as-activemq/src/main/java/org/apache/uima/adapter/jms/client/BaseUIMAAsynchronousEngine_impl.java

Modified: 
uima/uima-as/trunk/uimaj-as-activemq/src/main/java/org/apache/uima/adapter/jms/client/BaseUIMAAsynchronousEngine_impl.java
URL: 
http://svn.apache.org/viewvc/uima/uima-as/trunk/uimaj-as-activemq/src/main/java/org/apache/uima/adapter/jms/client/BaseUIMAAsynchronousEngine_impl.java?rev=1761985&r1=1761984&r2=1761985&view=diff
==============================================================================
--- 
uima/uima-as/trunk/uimaj-as-activemq/src/main/java/org/apache/uima/adapter/jms/client/BaseUIMAAsynchronousEngine_impl.java
 (original)
+++ 
uima/uima-as/trunk/uimaj-as-activemq/src/main/java/org/apache/uima/adapter/jms/client/BaseUIMAAsynchronousEngine_impl.java
 Thu Sep 22 17:46:33 2016
@@ -1056,7 +1056,8 @@ public class BaseUIMAAsynchronousEngine_
         }
         // Send a trigger to initiate shutdown.
         if (ctrer != null) {
-          if (ctrer instanceof AnalysisEngineController) {
+          if (ctrer instanceof AnalysisEngineController &&
+                         ((AnalysisEngineController) 
ctrer).getControllerLatch() != null ) {
             ((AnalysisEngineController) ctrer).getControllerLatch().release();
           }
           if (UIMAFramework.getLogger(CLASS_NAME).isLoggable(Level.FINEST)) {


Reply via email to