Author: cwiklik
Date: Wed Jun 12 22:00:56 2013
New Revision: 1492445

URL: http://svn.apache.org/r1492445
Log:
UIMA-2668 Modified sendExceptionToClient to prevent NPE

Modified:
    
uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/AggregateAnalysisEngineController_impl.java

Modified: 
uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/AggregateAnalysisEngineController_impl.java
URL: 
http://svn.apache.org/viewvc/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/AggregateAnalysisEngineController_impl.java?rev=1492445&r1=1492444&r2=1492445&view=diff
==============================================================================
--- 
uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/AggregateAnalysisEngineController_impl.java
 (original)
+++ 
uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/controller/AggregateAnalysisEngineController_impl.java
 Wed Jun 12 22:00:56 2013
@@ -2013,7 +2013,11 @@ public class AggregateAnalysisEngineCont
 
   private boolean sendExceptionToClient(CacheEntry cacheEntry, CasStateEntry 
casStateEntry,
           Endpoint replyEndpoint) throws Exception {
-    // Dont send CASes to the client if the input CAS is in failed state. One
+
+       if ( casStateEntry == null ) {
+               return false;
+       }
+         // Dont send CASes to the client if the input CAS is in failed state. 
One
     // of the descendant CASes may have failed in one of the delegates. Any
     // exception on descendant CAS causes the input CAS to be returned to the
     // client with an exception but only when all its descendant CASes are


Reply via email to