1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-12-23 04:57:58 +01:00

Fix SmackConfiguration disabledSmackClasses

contains() should ckeck against 'classToLoad' not 'name'.
This commit is contained in:
Florian Schmaus 2014-03-27 16:28:49 +01:00
parent a83b44e102
commit 17a254edca

View file

@ -319,11 +319,11 @@ public final class SmackConfiguration {
eventType = parser.next();
name = parser.getName();
if (eventType == XmlPullParser.START_TAG && "className".equals(name)) {
if (disabledSmackClasses.contains(name)) {
LOGGER.info("Not loading disabled Smack class " + name);
String classToLoad = parser.nextText();
if (disabledSmackClasses.contains(classToLoad)) {
LOGGER.info("Not loading disabled Smack class " + classToLoad);
}
else {
String classToLoad = parser.nextText();
try {
loadSmackClass(classToLoad, optional);
} catch (Exception e) {