AXIS2_ERROR_GET_STATUS_CODE does not return a default AXIS2_SUCEES.
-------------------------------------------------------------------

         Key: AXIS2C-189
         URL: http://issues.apache.org/jira/browse/AXIS2C-189
     Project: Axis2-C
        Type: Improvement

 Environment: All
    Reporter: Damitha Kumarage
 Assigned to: Damitha Kumarage 
    Priority: Minor


AXIS2_ERROR_GET_STATUS_CODE does not return a default AXIS2_SUCEES.
So in a situtation we get a null value we have to check like this

myvalue = some_method(...);
if(!myvalue)
{
        if(AXIS2_SUCCESS != AXIS2_ERROR_GET_STATUS_CODE(env->error))
               return AXIS2_ERROR_GET_STATUS_CODE(error);
        return AXIS2_SUCCESS;
}

But instead if we return AXIS2_SUCCESS by default when call 
AXIS2_ERROR_GET_STATUS_CODE(error)
then we can do like following

myvalue = some_method(...);
if(!myvalue)
      return AXIS2_ERROR_GET_STATUS_CODE(env->error)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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

Reply via email to