ASF Bugzilla – Attachment 14209 Details for
Bug 33446
NullPointerException in org.apache.tools.ant.XmlLogger.encode()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
This solves the problem for me
DOMElementWriter.java.patch (text/plain), 686 bytes, created by
Robert Enyedi
on 2005-02-08 16:37:29 UTC
(
hide
)
Description:
This solves the problem for me
Filename:
MIME Type:
Creator:
Robert Enyedi
Created:
2005-02-08 16:37:29 UTC
Size:
686 bytes
patch
obsolete
>Index: DOMElementWriter.java >=================================================================== >RCS file: /home/cvspublic/ant/src/main/org/apache/tools/ant/util/DOMElementWriter.java,v >retrieving revision 1.26 >diff -u -r1.26 DOMElementWriter.java >--- DOMElementWriter.java 24 Jan 2005 18:13:20 -0000 1.26 >+++ DOMElementWriter.java 8 Feb 2005 15:37:00 -0000 >@@ -175,7 +175,7 @@ > */ > public String encode(String value) { > StringBuffer sb = new StringBuffer(); >- int len = value.length(); >+ int len = (value == null?0:value.length()); > for (int i = 0; i < len; i++) { > char c = value.charAt(i); > switch (c) {
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 33446
: 14209