Merge branch 'bugfix/exception_during_startup' into support/1.1
* bugfix/exception_during_startup: Fixed an error which issued an exception on startup if a guild is temporary not available
This commit is contained in:
commit
e70bc31c29
|
@ -57,7 +57,7 @@ namespace DML.Application
|
|||
if (cbGuild.Items.Count == 0)
|
||||
{
|
||||
Trace("Adding guilds to component...");
|
||||
cbGuild.Items.AddRange(DMLClient.Client.Guilds.OrderBy(g => g.Name).Select(g => g.Name).ToArray());
|
||||
cbGuild.Items.AddRange(DMLClient.Client.Guilds.Where(g => g.Name != null).OrderBy(g => g.Name).Select(g => g.Name).ToArray());
|
||||
cbGuild.SelectedIndex = 0;
|
||||
Trace("Guild component initialized.");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue