mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 12:12:06 +01:00
Prevents a NPE if DEBUG_ENABLED was set to true AFTER the connection was created
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2214 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
e718ed796f
commit
70ec10065f
1 changed files with 6 additions and 2 deletions
|
@ -336,7 +336,9 @@ public class XMPPConnection {
|
||||||
|
|
||||||
// If debugging is enabled, change the the debug window title to include the
|
// If debugging is enabled, change the the debug window title to include the
|
||||||
// name we are now logged-in as.
|
// name we are now logged-in as.
|
||||||
if (DEBUG_ENABLED) {
|
// If DEBUG_ENABLED was set to true AFTER the connection was created the debugger
|
||||||
|
// will be null
|
||||||
|
if (DEBUG_ENABLED && debugger != null) {
|
||||||
debugger.userHasLogged(user);
|
debugger.userHasLogged(user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -396,7 +398,9 @@ public class XMPPConnection {
|
||||||
|
|
||||||
// If debugging is enabled, change the the debug window title to include the
|
// If debugging is enabled, change the the debug window title to include the
|
||||||
// name we are now logged-in as.
|
// name we are now logged-in as.
|
||||||
if (DEBUG_ENABLED) {
|
// If DEBUG_ENABLED was set to true AFTER the connection was created the debugger
|
||||||
|
// will be null
|
||||||
|
if (DEBUG_ENABLED && debugger != null) {
|
||||||
debugger.userHasLogged(user);
|
debugger.userHasLogged(user);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue