mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-22 22:32:06 +01:00
Fix SmackConfiguration disabledSmackClasses
contains() should ckeck against 'classToLoad' not 'name'.
This commit is contained in:
parent
a83b44e102
commit
17a254edca
1 changed files with 3 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue