Author: veithen Date: Tue Mar 3 22:59:11 2009 New Revision: 749818 URL: http://svn.apache.org/viewvc?rev=749818&view=rev Log: SOAPFaultTextImpl (DOOM): Added missing initialization for langNamespace causing NullPointerException in getLang().
Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextImpl.java Modified: webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextImpl.java URL: http://svn.apache.org/viewvc/webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextImpl.java?rev=749818&r1=749817&r2=749818&view=diff ============================================================================== --- webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextImpl.java (original) +++ webservices/commons/trunk/modules/axiom/modules/axiom-dom/src/main/java/org/apache/axiom/soap/impl/dom/SOAPFaultTextImpl.java Tue Mar 3 22:59:11 2009 @@ -35,7 +35,7 @@ protected OMAttribute langAttr; - protected OMNamespace langNamespace = null; + protected final OMNamespace langNamespace; protected SOAPFaultTextImpl(SOAPFaultReason parent, SOAPFactory factory) throws SOAPProcessingException { @@ -49,6 +49,9 @@ OMXMLParserWrapper builder, SOAPFactory factory) { super(parent, SOAP12Constants.SOAP_FAULT_TEXT_LOCAL_NAME, builder, factory); + this.langNamespace = factory.createOMNamespace( + SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_URI, + SOAP12Constants.SOAP_FAULT_TEXT_LANG_ATTR_NS_PREFIX); }