You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by sa...@apache.org on 2006/01/16 05:03:10 UTC

svn commit: r369334 - in /webservices/axis2/trunk/c: deploy/modules/test.so deploy/services/test.so modules/core/transport/http/server/http_server_main.c modules/xml/om/om_element.c

Author: samisa
Date: Sun Jan 15 20:02:58 2006
New Revision: 369334

URL: http://svn.apache.org/viewcvs?rev=369334&view=rev
Log:
Fixed the NULL pointer bug

Added:
    webservices/axis2/trunk/c/deploy/modules/test.so
    webservices/axis2/trunk/c/deploy/services/test.so
Modified:
    webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c
    webservices/axis2/trunk/c/modules/xml/om/om_element.c

Added: webservices/axis2/trunk/c/deploy/modules/test.so
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/deploy/modules/test.so?rev=369334&view=auto
==============================================================================
    (empty)

Added: webservices/axis2/trunk/c/deploy/services/test.so
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/deploy/services/test.so?rev=369334&view=auto
==============================================================================
    (empty)

Modified: webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c?rev=369334&r1=369333&r2=369334&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c (original)
+++ webservices/axis2/trunk/c/modules/core/transport/http/server/http_server_main.c Sun Jan 15 20:02:58 2006
@@ -52,7 +52,7 @@
 	axis2_http_server_t *server = NULL;
 	char tmp_str[512];
 	int port = 9090;
-    axis2_char_t *repo = "../../../../../../";
+    axis2_char_t *repo = "../../../../../deploy";
 	
 	if(argc > 1)
 	{

Modified: webservices/axis2/trunk/c/modules/xml/om/om_element.c
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/c/modules/xml/om/om_element.c?rev=369334&r1=369333&r2=369334&view=diff
==============================================================================
--- webservices/axis2/trunk/c/modules/xml/om/om_element.c (original)
+++ webservices/axis2/trunk/c/modules/xml/om/om_element.c Sun Jan 15 20:02:58 2006
@@ -980,6 +980,9 @@
     children_iterator = axis2_om_children_qname_iterator_create(env,
                         AXIS2_OM_NODE_GET_FIRST_CHILD(element_node, env),
                         element_qname);
+    if (!children_iterator)
+        return NULL;
+
     if(AXIS2_OM_CHILDREN_QNAME_ITERATOR_HAS_NEXT(children_iterator, env))
     {
         om_node =   AXIS2_OM_CHILDREN_QNAME_ITERATOR_NEXT(children_iterator, env);