bug 415302

Patch to protect against null input's.

-=david=-

Signed-off-by: David Harrigan <dharrigan@gmail.com>
This commit is contained in:
David Harrigan 2013-08-18 18:26:28 +01:00 committed by Jan Bartel
parent 8951c4c773
commit e351f04002
1 changed files with 18 additions and 12 deletions

View File

@ -340,6 +340,9 @@ public class QuotedStringTokenizer
*/
public static void quoteOnly(Appendable buffer, String input)
{
if(input==null)
return;
try
{
buffer.append('"');
@ -366,6 +369,9 @@ public class QuotedStringTokenizer
*/
public static void quote(Appendable buffer, String input)
{
if(input==null)
return;
try
{
buffer.append('"');