[ 
https://issues.apache.org/jira/browse/AXIS2-5272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sagara Gunathunga  resolved AXIS2-5272.
---------------------------------------

    Resolution: Fixed
    
> Possible null pointer exception
> -------------------------------
>
>                 Key: AXIS2-5272
>                 URL: https://issues.apache.org/jira/browse/AXIS2-5272
>             Project: Axis2
>          Issue Type: Bug
>          Components: Integration
>    Affects Versions: 1.6.1
>            Reporter: Prabhath Suminda
>            Priority: Minor
>             Fix For: 1.7.0
>
>         Attachments: patch.patch
>
>
> In private EndpointReference calculateEndpoint(String protocol, String 
> serviceName, String ip) method in  
> /org.apache.axis2.osgi/src/org/apache/axis2/osgi/core/web/WebApp.java
> There is if statement like this,
>         if (contextRoot.equals("/") || contextRoot == null) {
>             contextRoot = ""; 
>         }
> here contextroot==null is useless because contextRoot.equals("/") will throw 
> a null pointer exception if contextRoot is null.
>  
>   

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.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