axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sagara Gunathunga (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIS2-5272) Possible null pointer exception
Date Fri, 23 Mar 2012 10:57:28 GMT

    [ https://issues.apache.org/jira/browse/AXIS2-5272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236512#comment-13236512
] 

Sagara Gunathunga  commented on AXIS2-5272:
-------------------------------------------

Fixed in r1304277. 
                
> 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


Mime
View raw message