You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Sagara Gunathunga (JIRA)" <ji...@apache.org> on 2012/05/10 07:52:00 UTC

[jira] [Resolved] (AXIS2-5272) Possible null pointer exception

     [ 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: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org