diff --git a/source/org/jivesoftware/smack/PacketReader.java b/source/org/jivesoftware/smack/PacketReader.java index 353808725..a6aa87aee 100644 --- a/source/org/jivesoftware/smack/PacketReader.java +++ b/source/org/jivesoftware/smack/PacketReader.java @@ -475,6 +475,13 @@ class PacketReader { return registration; } + /** + * Parses error sub-packets. + * + * @param parser the XML parser. + * @return an error sub-packet. + * @throws Exception if an exception occurs while parsing the packet. + */ private static XMPPError parseError(XmlPullParser parser) throws Exception { String errorCode = null; for (int i=0; i