You need to sign in or sign up before continuing.
Commit ee5dff27 authored by Thomas's avatar Thomas
Browse files

Error handling

parent 4b7cb9f5
......@@ -986,7 +986,8 @@ namespace pEp
// Attempt to get ExtraKeys value
try
{
if (pEpKey?.GetValue(nameof(this.ExtraKeys), null) is string extraKeysValue)
if ((pEpKey?.GetValue(nameof(this.ExtraKeys), null) is string extraKeysValue) &&
(string.IsNullOrEmpty(extraKeysValue) == false))
{
extraKeys = new List<string>(extraKeysValue.Split(','));
......
......@@ -717,6 +717,10 @@ namespace pEp
{
Log.Warning("RegisterMyself: Engine returned exception, " + ex.ToString());
}
catch (Exception ex)
{
Log.Error("RegisterMyself: Error occured. " + ex.ToString());
}
// Enable Sync if necessary
acctSettings.SignalSyncSettingsToEngine();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment