File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
core/src/main/java/org/springframework/ws/soap/saaj/support Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 17
17
package org .springframework .ws .soap .saaj .support ;
18
18
19
19
import java .util .Iterator ;
20
+ import java .util .LinkedHashMap ;
20
21
import java .util .Map ;
21
22
import javax .xml .soap .Name ;
22
23
import javax .xml .soap .SOAPElement ;
23
24
import javax .xml .soap .SOAPEnvelope ;
24
25
import javax .xml .soap .SOAPException ;
25
26
26
- import org .springframework .core .CollectionFactory ;
27
- import org .springframework .util .Assert ;
28
- import org .springframework .util .StringUtils ;
29
27
import org .xml .sax .Attributes ;
30
28
import org .xml .sax .ContentHandler ;
31
29
import org .xml .sax .Locator ;
32
30
import org .xml .sax .SAXException ;
33
31
32
+ import org .springframework .util .Assert ;
33
+ import org .springframework .util .StringUtils ;
34
+
34
35
/**
35
36
* SAX <code>ContentHandler</code> that transforms callback calls to the creation of SAAJ <code>Node</code>s and
36
37
* <code>SOAPElement</code>s.
@@ -46,7 +47,7 @@ public class SaajContentHandler implements ContentHandler {
46
47
47
48
private final SOAPEnvelope envelope ;
48
49
49
- private Map namespaces = CollectionFactory . createLinkedMapIfPossible ( 5 );
50
+ private Map namespaces = new LinkedHashMap ( );
50
51
51
52
/**
52
53
* Constructs a new instance of the <code>SaajContentHandler</code> that creates children of the given
Original file line number Diff line number Diff line change @@ -168,7 +168,7 @@ private void handleElement(SOAPElement element) throws SAXException {
168
168
169
169
private void handleText (Text text ) throws SAXException {
170
170
if (getContentHandler () != null ) {
171
- char [] ch = text .getValue (). toCharArray ();
171
+ char [] ch = text .getValue () != null ? text . getValue (). toCharArray () : new char [ 0 ] ;
172
172
getContentHandler ().characters (ch , 0 , ch .length );
173
173
}
174
174
}
You can’t perform that action at this time.
0 commit comments