aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator
diff options
context:
space:
mode:
authorLyubomir Marinov <lyubomir.marinov@jitsi.org>2008-12-14 15:32:45 +0000
committerLyubomir Marinov <lyubomir.marinov@jitsi.org>2008-12-14 15:32:45 +0000
commitf5748fef530da41c02a3f568c924fc2515f24469 (patch)
treedb160e7a37ee7ae07f48acc6b5dab98dd6ac06c2 /src/net/java/sip/communicator
parent52465acd615afa2025bd58bc1d13b2ec85aaf54d (diff)
downloadjitsi-f5748fef530da41c02a3f568c924fc2515f24469.zip
jitsi-f5748fef530da41c02a3f568c924fc2515f24469.tar.gz
jitsi-f5748fef530da41c02a3f568c924fc2515f24469.tar.bz2
Fixes a NullPointerException in UIServiceImpl.setDefaultThemePack reported by Werner on the dev mailing list in an e-mail subjected NPE in UIServiceImpl.
Diffstat (limited to 'src/net/java/sip/communicator')
-rw-r--r--src/net/java/sip/communicator/impl/gui/UIServiceImpl.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java b/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java
index e343466..7087914 100644
--- a/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java
+++ b/src/net/java/sip/communicator/impl/gui/UIServiceImpl.java
@@ -107,6 +107,9 @@ public class UIServiceImpl
this.mainFrame = new MainFrame();
+ if (UIManager.getLookAndFeel() instanceof SIPCommLookAndFeel)
+ initCustomFonts();
+
/*
* The mainFrame isn't fully ready without the MetaContactListService so
* make sure it's set before allowing anything, such as LoginManager, to
@@ -822,8 +825,6 @@ public class UIServiceImpl
logger.error("The provided Look & Feel is not supported.",
e);
}
-
- this.initCustomFonts();
}
}