Fixed possible NPE when parsing invalid XHTML text. SMACK-3

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2401 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2004-10-31 02:46:07 +00:00 committed by gaston
parent b220cf0c5e
commit d7668b3dcc
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ public class XHTMLExtensionProvider implements PacketExtensionProvider {
throws Exception {
XHTMLExtension xhtmlExtension = new XHTMLExtension();
boolean done = false;
StringBuffer buffer = null;
StringBuffer buffer = new StringBuffer();;
while (!done) {
int eventType = parser.next();
if (eventType == XmlPullParser.START_TAG) {