restrictions apparantly cannot have a null default value

This commit is contained in:
Kyle Spearrin 2020-02-29 00:42:11 -05:00
parent 033b2b9ba0
commit 30d6a4d9eb
2 changed files with 2 additions and 2 deletions

View file

@ -5,5 +5,5 @@
android:title="@string/SelfHostedServerUrl" android:title="@string/SelfHostedServerUrl"
android:restrictionType="string" android:restrictionType="string"
android:description="@string/ServerUrl" android:description="@string/ServerUrl"
android:defaultValue="@null" /> android:defaultValue="" />
</restrictions> </restrictions>

View file

@ -163,7 +163,7 @@ namespace Bit.App.Utilities
{ {
await environmentService.SetUrlsAsync(new Core.Models.Data.EnvironmentUrlData await environmentService.SetUrlsAsync(new Core.Models.Data.EnvironmentUrlData
{ {
Base = setting.Value, Base = string.IsNullOrWhiteSpace(setting.Value) ? null : setting.Value,
Api = environmentService.ApiUrl, Api = environmentService.ApiUrl,
Identity = environmentService.IdentityUrl, Identity = environmentService.IdentityUrl,
WebVault = environmentService.WebVaultUrl, WebVault = environmentService.WebVaultUrl,