Author: cwiklik
Date: Wed Aug  9 23:57:15 2017
New Revision: 1804617

URL: http://svn.apache.org/viewvc?rev=1804617&view=rev
Log:
UIMA-5529 one more fix to make sure the getLastSerializedError() does not 
return null

Modified:
    
uima/uima-ducc/trunk/uima-ducc-user/src/main/java/org/apache/uima/ducc/user/jp/DuccAbstractProcessContainer.java

Modified: 
uima/uima-ducc/trunk/uima-ducc-user/src/main/java/org/apache/uima/ducc/user/jp/DuccAbstractProcessContainer.java
URL: 
http://svn.apache.org/viewvc/uima/uima-ducc/trunk/uima-ducc-user/src/main/java/org/apache/uima/ducc/user/jp/DuccAbstractProcessContainer.java?rev=1804617&r1=1804616&r2=1804617&view=diff
==============================================================================
--- 
uima/uima-ducc/trunk/uima-ducc-user/src/main/java/org/apache/uima/ducc/user/jp/DuccAbstractProcessContainer.java
 (original)
+++ 
uima/uima-ducc/trunk/uima-ducc-user/src/main/java/org/apache/uima/ducc/user/jp/DuccAbstractProcessContainer.java
 Wed Aug  9 23:57:15 2017
@@ -222,12 +222,13 @@ public abstract class DuccAbstractProces
                                                result = serialize(new 
RuntimeException(serializeAsString(lastError)));
                                        }
                                }
-                       } else {
-                               // this is not be normal that we are here. This 
method was 
-                               // called since the process() failed. An 
exception should have
-                               // been added to the errorMap in such case with 
key=thread id
-                               result = serialize(new 
RuntimeException("AE.process( )failed - check service log"));
-                       }
+                       } 
+               } 
+               if ( result == null ) {
+                       // this is not be normal that we are here. This method 
was 
+                       // called since the process() failed. An exception 
should have
+                       // been added to the errorMap in such case with 
key=thread id
+                       result = serialize(new RuntimeException("AE.process( 
)failed - check service log"));
                }
                return result;
        }


Reply via email to