Fix "potential null pointer access warning".
authorkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Jul 2011 13:29:44 +0000 (13:29 +0000)
committerkkolinko <kkolinko@13f79535-47bb-0310-9956-ffa450edef68>
Mon, 4 Jul 2011 13:29:44 +0000 (13:29 +0000)
commit8aaa95eedc0618f1af3ecec6c0ff82f7c5b2c390
tree03db4d7c0b39124b03c36ff460b6b59c7658d244
parent0e63f471fcd43dffb70e356426f2c71a049d46ca
Fix "potential null pointer access warning".
As a bonus, it avoids allocating char[] buffer for an empty string.
Add $FALL-THROUGH$ comment where we fall through to the next label in switch().

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1142656 13f79535-47bb-0310-9956-ffa450edef68
java/org/apache/catalina/util/DOMWriter.java