mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 22:12:05 +01:00
Use try/catch around System.getProperty()
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2320 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
a1af5c79e7
commit
250ab4de71
1 changed files with 9 additions and 3 deletions
|
@ -687,9 +687,15 @@ public class XMPPConnection {
|
||||||
|
|
||||||
// If debugging is enabled, we open a window and write out all network traffic.
|
// If debugging is enabled, we open a window and write out all network traffic.
|
||||||
if (DEBUG_ENABLED) {
|
if (DEBUG_ENABLED) {
|
||||||
|
|
||||||
// Detect the debugger class to use.
|
// Detect the debugger class to use.
|
||||||
String className = System.getProperty("smack.debuggerClass");
|
String className = null;
|
||||||
|
// Use try block since we may not have permission to get a system
|
||||||
|
// property (for example, when an applet).
|
||||||
|
try {
|
||||||
|
System.getProperty("smack.debuggerClass");
|
||||||
|
}
|
||||||
|
catch (Throwable t) {
|
||||||
|
}
|
||||||
Class debuggerClass = null;
|
Class debuggerClass = null;
|
||||||
if (className != null) {
|
if (className != null) {
|
||||||
try {
|
try {
|
||||||
|
|
Loading…
Reference in a new issue