You are viewing a plain text version of this content. The canonical link for it is here.
Posted to savan-dev@ws.apache.org by da...@apache.org on 2007/09/20 08:31:13 UTC

svn commit: r577574 - /webservices/savan/trunk/c/src/util/savan_util.c

Author: damitha
Date: Wed Sep 19 23:31:12 2007
New Revision: 577574

URL: http://svn.apache.org/viewvc?rev=577574&view=rev
Log:
Fixed a segfault that happen's when the subscription manager is moved to a separate service than the data source

Modified:
    webservices/savan/trunk/c/src/util/savan_util.c

Modified: webservices/savan/trunk/c/src/util/savan_util.c
URL: http://svn.apache.org/viewvc/webservices/savan/trunk/c/src/util/savan_util.c?rev=577574&r1=577573&r2=577574&view=diff
==============================================================================
--- webservices/savan/trunk/c/src/util/savan_util.c (original)
+++ webservices/savan/trunk/c/src/util/savan_util.c Wed Sep 19 23:31:12 2007
@@ -1102,9 +1102,11 @@
     axis2_char_t *id = NULL;
 	axis2_endpoint_ref_t *notify_ref = NULL;
     axis2_endpoint_ref_t *endto_ref = savan_subscriber_get_end_to(subscriber, env);
-    endto = axis2_endpoint_ref_get_address(endto_ref, env);
+    if(endto_ref)
+        endto = axis2_endpoint_ref_get_address(endto_ref, env);
     notify_ref = savan_subscriber_get_notify_to(subscriber, env);
-    notify = axis2_endpoint_ref_get_address(notify_ref, env);
+    if(notify_ref)
+        notify = axis2_endpoint_ref_get_address(notify_ref, env);
     filter = savan_subscriber_get_filter(subscriber, env); 
     expires = savan_subscriber_get_expires(subscriber, env); 
     id = savan_subscriber_get_id(subscriber, env);