1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-26 22:12:05 +01:00

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

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) {