From 6c3025ecf14726c334ab3d74d9663b8e99173b32 Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Mon, 11 Sep 2017 01:42:39 +0200 Subject: [PATCH] Potential xp null error fix --- src/NadekoBot/Modules/Xp/Services/XpService.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/NadekoBot/Modules/Xp/Services/XpService.cs b/src/NadekoBot/Modules/Xp/Services/XpService.cs index 11a7aaa9..1533e4b0 100644 --- a/src/NadekoBot/Modules/Xp/Services/XpService.cs +++ b/src/NadekoBot/Modules/Xp/Services/XpService.cs @@ -79,6 +79,7 @@ namespace NadekoBot.Modules.Xp.Services _strings = strings; //load settings + allGuildConfigs = allGuildConfigs.Where(x => x.XpSettings != null); _excludedChannels = allGuildConfigs .ToDictionary( x => x.GuildId,