axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Mitchell (JIRA)" <j...@apache.org>
Subject [jira] Created: (AXIS2C-927) axiom_element_declare_default_namespace fails when no namespace already declared
Date Mon, 21 Jan 2008 23:02:45 GMT
axiom_element_declare_default_namespace fails when no namespace already declared
--------------------------------------------------------------------------------

                 Key: AXIS2C-927
                 URL: https://issues.apache.org/jira/browse/AXIS2C-927
             Project: Axis2-C
          Issue Type: Bug
         Environment: Windows XP, Visual Studio 2005, guththila, libcurl
            Reporter: Bill Mitchell


If axiom_element_declare_default_namespace() is called before any named namespace is declared,
it fails to perform the axutil_hash_make and as a result axutil_hash_set crashes on the empty
namespace pointer.  

The code fragment:
    if (om_element->namespaces)
    {
        om_element->namespaces = axutil_hash_make(env);
        if (!(om_element->namespaces))
        {
            return NULL;
        }
    }
should read:
    if (!om_element->namespaces)
    {
        om_element->namespaces = axutil_hash_make(env);
        if (!(om_element->namespaces))
        {
            return NULL;
        }
    }


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-c-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-c-dev-help@ws.apache.org


Mime
View raw message