You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by cw...@apache.org on 2011/10/20 19:29:21 UTC
svn commit: r1186946 -
/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/handler/input/ProcessResponseHandler.java
Author: cwiklik
Date: Thu Oct 20 17:29:20 2011
New Revision: 1186946
URL: http://svn.apache.org/viewvc?rev=1186946&view=rev
Log:
UIMA-2239 Fixed dereference thru NullPointer
Modified:
uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/handler/input/ProcessResponseHandler.java
Modified: uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/handler/input/ProcessResponseHandler.java
URL: http://svn.apache.org/viewvc/uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/handler/input/ProcessResponseHandler.java?rev=1186946&r1=1186945&r2=1186946&view=diff
==============================================================================
--- uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/handler/input/ProcessResponseHandler.java (original)
+++ uima/uima-as/trunk/uimaj-as-core/src/main/java/org/apache/uima/aae/handler/input/ProcessResponseHandler.java Thu Oct 20 17:29:20 2011
@@ -614,13 +614,13 @@ public class ProcessResponseHandler exte
.getLocalCache().lookupEntry(casReferenceId);
if (casStateEntry != null) {
casStateEntry.setFreeCasNotificationEndpoint(freeCasEndpoint);
- }
- // Fetch host IP where the CAS is being processed. When the UIMA AS service
- // receives a CAS it immediately sends ServiceInfo Reply message containing
- // IP of the host where the service is running.
- String serviceHostIp = messageContext.getMessageStringProperty(AsynchAEMessage.ServerIP);
- if ( serviceHostIp != null ) {
- casStateEntry.setHostIpProcessingCAS(serviceHostIp);
+ // Fetch host IP where the CAS is being processed. When the UIMA AS service
+ // receives a CAS it immediately sends ServiceInfo Reply message containing
+ // IP of the host where the service is running.
+ String serviceHostIp = messageContext.getMessageStringProperty(AsynchAEMessage.ServerIP);
+ if ( serviceHostIp != null ) {
+ casStateEntry.setHostIpProcessingCAS(serviceHostIp);
+ }
}
} catch (Exception e) {
UIMAFramework.getLogger(CLASS_NAME).logrb(Level.WARNING, getClass().getName(),