You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@apache.org on 2001/10/05 17:03:09 UTC
cvs commit: xml-xalan/java/src/org/apache/xml/utils FastStringBuffer.java
mmidy 01/10/05 08:03:09
Modified: java/src/org/apache/xml/utils FastStringBuffer.java
Log:
Bugzilla 1165: Fix Null pointer Exception by checking for a null input param.
Revision Changes Path
1.13 +8 -0 xml-xalan/java/src/org/apache/xml/utils/FastStringBuffer.java
Index: FastStringBuffer.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xml/utils/FastStringBuffer.java,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- FastStringBuffer.java 2001/07/05 20:26:29 1.12
+++ FastStringBuffer.java 2001/10/05 15:03:09 1.13
@@ -397,6 +397,8 @@
public final void append(char value)
{
+ if (value == null)
+ return;
char[] chunk;
// We may have preallocated chunks. If so, all but last should
@@ -459,6 +461,8 @@
public final void append(String value)
{
+ if (value == null)
+ return;
int strlen = value.length();
if (0 == strlen)
@@ -539,6 +543,8 @@
public final void append(StringBuffer value)
{
+ if (value == null)
+ return;
int strlen = value.length();
if (0 == strlen)
@@ -707,6 +713,8 @@
// different chunk sizes, and even if they're the same we're
// probably on a different alignment due to previously appended
// data. We have to work through the source in bite-sized chunks.
+ if (value == null)
+ return;
int strlen = value.length();
if (0 == strlen)
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org