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 "Prabhath Suminda (Created) (JIRA)" <ji...@apache.org> on 2012/03/18 18:50:42 UTC
[jira] [Created] (AXIS2-5272) Possible null pointer exception
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
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
[jira] [Resolved] (AXIS2-5272) Possible null pointer exception
Posted by "Sagara Gunathunga (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (AXIS2-5272) Possible null pointer exception
Posted by "Prabhath Suminda (Updated) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Commented] (AXIS2-5272) Possible null pointer exception
Posted by "Hudson (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13236525#comment-13236525 ]
Hudson commented on AXIS2-5272:
-------------------------------
Integrated in Axis2 #1314 (See [https://builds.apache.org/job/Axis2/1314/])
Applied patch for AXIS2-5272. (Revision 1304277)
Result = SUCCESS
sagara :
Files :
* /axis/axis2/java/core/trunk/modules/osgi/src/org/apache/axis2/osgi/tx/HttpListener.java
> 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
[jira] [Commented] (AXIS2-5272) Possible null pointer exception
Posted by "Sagara Gunathunga (Commented) (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (AXIS2-5272) Possible null pointer exception
Posted by "Sagara Gunathunga (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/AXIS2-5272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sagara Gunathunga updated AXIS2-5272:
--------------------------------------
Fix Version/s: 1.7.0
Labels: (was: patch)
> 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