From 17a254edcaebe14e865c6106538b8aa10e90e344 Mon Sep 17 00:00:00 2001 From: Florian Schmaus Date: Thu, 27 Mar 2014 16:28:49 +0100 Subject: [PATCH] Fix SmackConfiguration disabledSmackClasses contains() should ckeck against 'classToLoad' not 'name'. --- .../java/org/jivesoftware/smack/SmackConfiguration.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java b/core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java index d6f035699..262d8e048 100644 --- a/core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java +++ b/core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java @@ -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) {