Commit 26cb3710 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Fixed double byte char fix to accept \t heart beats and ignore empty strings.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9900 b35dd754-fafc-0310-a699-88a17e54d16e
parent dfd1818c
......@@ -2,7 +2,7 @@
* $Revision: $
* $Date: $
*
* Copyright (C) 2007 Jive Software. All rights reserved.
* Copyright (C) 2008 Jive Software. All rights reserved.
*
* This software is published under the terms of the GNU Public License (GPL),
* a copy of which is included in this distribution.
......@@ -166,6 +166,10 @@ class XMLLightweightParser {
byteBuffer.position(byteBuffer.position()-1);
// Decrease the number of bytes read by one
readByte--;
// Just return if nothing was read
if (readByte == 0) {
return;
}
}
buffer.append(buf, 0, readByte);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment