Author: damitha
Date: Fri Feb 15 01:29:19 2008
New Revision: 627981

URL: http://svn.apache.org/viewvc?rev=627981&view=rev
Log:
NULL checking

Modified:
    webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c

Modified: webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c
URL: 
http://svn.apache.org/viewvc/webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c?rev=627981&r1=627980&r2=627981&view=diff
==============================================================================
--- webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c 
(original)
+++ webservices/sandesha/trunk/c/src/msgprocessors/app_msg_processor.c Fri Feb 
15 01:29:19 2008
@@ -1475,11 +1475,14 @@
     {
         sandesha2_seq_property_bean_t *to_epr_bean = NULL;
         axis2_endpoint_ref_t *to_epr = axis2_msg_ctx_get_to(msg_ctx, env);
-        axis2_char_t *to_str = (axis2_char_t *)axis2_endpoint_ref_get_address(
-            to_epr, env);
-        to_epr_bean = sandesha2_seq_property_bean_create_with_data(env, 
-            internal_seq_id, SANDESHA2_SEQ_PROP_TO_EPR, to_str);
-        sandesha2_seq_property_mgr_insert(seq_prop_mgr, env, to_epr_bean);
+        if(to_epr)
+        {
+            axis2_char_t *to_str = 
+                (axis2_char_t *)axis2_endpoint_ref_get_address(to_epr, env);
+            to_epr_bean = sandesha2_seq_property_bean_create_with_data(env, 
+                internal_seq_id, SANDESHA2_SEQ_PROP_TO_EPR, to_str);
+            sandesha2_seq_property_mgr_insert(seq_prop_mgr, env, to_epr_bean);
+        }
     }
     seq_offer = sandesha2_create_seq_get_seq_offer(create_seq_part, env);
     if(seq_offer)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to