axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Prabhath Suminda (Updated) (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AXIS2-5272) Possible null pointer exception
Date Sun, 18 Mar 2012 17:52:43 GMT

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

Prabhath Suminda updated AXIS2-5272:
------------------------------------

    Attachment: patch.patch

I create the following patch to correct this issue. Hope it will be corrected in future versions.
                
> 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
>              Labels: patch
>         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