diff --git a/app/src/main/java/io/mrarm/irc/util/theme/ThemeManager.java b/app/src/main/java/io/mrarm/irc/util/theme/ThemeManager.java index ca203691..b53210ca 100644 --- a/app/src/main/java/io/mrarm/irc/util/theme/ThemeManager.java +++ b/app/src/main/java/io/mrarm/irc/util/theme/ThemeManager.java @@ -263,8 +263,9 @@ public void applyThemeToActivity(Activity activity) { currentCustomThemePatcher.getAssetManager() : context.getAssets(), new DisplayMetrics(), c); Resources.Theme t = r.newTheme(); - t.applyStyle(currentTheme.getThemeResId(), true); - IRCColorUtils.loadColors(t, currentTheme.getIRCColorsResId()); + ThemeResInfo resInfo = currentTheme != null ? currentTheme : fallbackTheme; + t.applyStyle(resInfo.getThemeResId(), true); + IRCColorUtils.loadColors(t, resInfo.getIRCColorsResId()); mNeedsApplyIrcColors = false; } if (currentCustomThemePatcher != null) {