Fixed the exception

This commit is contained in:
tidusjar 2017-09-30 01:04:37 +01:00
commit 9e6a7d5a72

View file

@ -3,7 +3,7 @@
@inject ISettingsService<OmbiSettings> Settings
@{
var s = await Settings.GetSettingsAsync();
var baseUrl = s.BaseUrl;
var baseUrl = s?.BaseUrl ?? string.Empty;
if (!baseUrl.EndsWith("/"))
{