Skip to content

Commit eea557f

Browse files
committed
Fix potential NRE when setting culture.
1 parent 56c9b8b commit eea557f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RetailCoder.VBE/UI/Settings/Settings.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private static void LoadLanguage()
4242
{
4343
if (_configService == null)
4444
{
45-
_cultureInfo = RubberduckUI.Culture;
45+
_cultureInfo = RubberduckUI.Culture ?? Dispatcher.CurrentDispatcher.Thread.CurrentUICulture;
4646
return;
4747
}
4848

0 commit comments

Comments
 (0)