You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-commits@axis.apache.org by sa...@apache.org on 2010/12/21 15:23:59 UTC
svn commit: r1051506 -
/axis/axis2/java/rampart/trunk/modules/rampart-core/src/main/java/org/apache/rampart/RampartMessageData.java
Author: samisa
Date: Tue Dec 21 14:23:59 2010
New Revision: 1051506
URL: http://svn.apache.org/viewvc?rev=1051506&view=rev
Log:
Fixed the problem of NPE in RampartMessageData that prevents fault being returned to service consumer - RAMPART-293
Modified:
axis/axis2/java/rampart/trunk/modules/rampart-core/src/main/java/org/apache/rampart/RampartMessageData.java
Modified: axis/axis2/java/rampart/trunk/modules/rampart-core/src/main/java/org/apache/rampart/RampartMessageData.java
URL: http://svn.apache.org/viewvc/axis/axis2/java/rampart/trunk/modules/rampart-core/src/main/java/org/apache/rampart/RampartMessageData.java?rev=1051506&r1=1051505&r2=1051506&view=diff
==============================================================================
--- axis/axis2/java/rampart/trunk/modules/rampart-core/src/main/java/org/apache/rampart/RampartMessageData.java (original)
+++ axis/axis2/java/rampart/trunk/modules/rampart-core/src/main/java/org/apache/rampart/RampartMessageData.java Tue Dec 21 14:23:59 2010
@@ -370,7 +370,9 @@ public class RampartMessageData {
// To handle scenarios where password type is not set by default.
this.config.setHandleCustomPasswordTypes(true);
- this.customClassLoader = msgCtx.getAxisService().getClassLoader();
+ if (axisService != null) {
+ this.customClassLoader = axisService.getClassLoader();
+ }
if(this.sender && this.policyData != null) {
this.secHeader = new WSSecHeader();