Commit e10ab1fc authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Fixed error parsing stored XML.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@705 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1ed6bd57
......@@ -22,6 +22,7 @@ import org.dom4j.io.SAXReader;
import java.sql.*;
import java.sql.Connection;
import java.io.StringWriter;
import java.io.StringReader;
/**
* Private storage for user accounts (JEP-0049). It is used by some XMPP systems
......@@ -150,7 +151,7 @@ public class PrivateStorage extends BasicModule {
if (rs.next()) {
data.clearContent();
String result = rs.getString(1).trim();
Document doc = xmlReader.read(result);
Document doc = xmlReader.read(new StringReader(result));
data = doc.getRootElement();
}
rs.close();
......
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