Commit 5990a983 authored by Sylvain Berfini's avatar Sylvain Berfini

Try to prevent empty push notif URI

parent bbdb5134
......@@ -289,9 +289,13 @@ namespace Linphone.Model
{
if (server.LinphoneCore.GetDefaultProxyConfig() != null)
{
string host, token;
host = ((App)App.Current).PushChannelUri.Host;
token = ((App)App.Current).PushChannelUri.AbsolutePath;
string host = null, token = null;
try
{
host = ((App)App.Current).PushChannelUri.Host;
token = ((App)App.Current).PushChannelUri.AbsolutePath;
}
catch { }
if (host == null || token == null)
{
......
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