mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-30 02:02:06 +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:
parent
b220cf0c5e
commit
d7668b3dcc
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ public class XHTMLExtensionProvider implements PacketExtensionProvider {
|
||||||
throws Exception {
|
throws Exception {
|
||||||
XHTMLExtension xhtmlExtension = new XHTMLExtension();
|
XHTMLExtension xhtmlExtension = new XHTMLExtension();
|
||||||
boolean done = false;
|
boolean done = false;
|
||||||
StringBuffer buffer = null;
|
StringBuffer buffer = new StringBuffer();;
|
||||||
while (!done) {
|
while (!done) {
|
||||||
int eventType = parser.next();
|
int eventType = parser.next();
|
||||||
if (eventType == XmlPullParser.START_TAG) {
|
if (eventType == XmlPullParser.START_TAG) {
|
||||||
|
|
Loading…
Reference in a new issue