Skip to content

Commit

Permalink
Merge branch 'bugfix/exception_during_startup' into support/1.1
Browse files Browse the repository at this point in the history
* bugfix/exception_during_startup:
  Fixed an error which issued an exception on startup if a guild is temporary not available
  • Loading branch information
Serraniel committed May 24, 2018
2 parents 57db3ed + 2a6f1a4 commit e70bc31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Discord Media Loader.Application/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ private void RefreshComponents()
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.");
}
Expand Down

0 comments on commit e70bc31

Please sign in to comment.