Commit 0c16b9f1 authored by Sylvain Berfini's avatar Sylvain Berfini

Fix mistake in comments + prevent crash in settings

parent f4aa6f84
......@@ -235,7 +235,7 @@ namespace Linphone
/// <param name="password">The authentication password</param>
/// <param name="ha1">The authentication ha1</param>
/// <param name="realm">The authentication realm</param>
/// <param name="realm">The authentication domain</param>
/// <param name="domain">The authentication domain</param>
LinphoneAuthInfo^ CreateAuthInfo(Platform::String^ username, Platform::String^ userid, Platform::String^ password, Platform::String^ ha1, Platform::String^ realm, Platform::String^ domain);
/// <summary>
......
......@@ -86,7 +86,7 @@ namespace Linphone
/// <param name="password">The authentication password</param>
/// <param name="ha1">The authentication ha1</param>
/// <param name="realm">The authentication realm</param>
/// <param name="realm">The authentication domain</param>
/// <param name="domain">The authentication domain</param>
/// <returns>The LinphoneAuthInfo that has been created</returns>
LinphoneAuthInfo^ CreateAuthInfo(Platform::String^ username, Platform::String^ userid, Platform::String^ password, Platform::String^ ha1, Platform::String^ realm, Platform::String^ domain);
......
......@@ -102,7 +102,7 @@ namespace Linphone
/// <param name="password">The authentication password</param>
/// <param name="ha1">The authentication ha1</param>
/// <param name="realm">The authentication realm</param>
/// <param name="realm">The authentication domain</param>
/// <param name="domain">The authentication domain</param>
/// <returns>The created Linphone::Core::LinphoneAuthInfo as a Platform::Object</returns>
static Platform::Object^ CreateLinphoneAuthInfo(Platform::String^ username, Platform::String^ userid, Platform::String^ password, Platform::String^ ha1, Platform::String^ realm, Platform::String^ domain);
......
......@@ -455,6 +455,10 @@ namespace Linphone.Model
}
// Can't set string to null: http://stackoverflow.com/questions/12980915/exception-when-trying-to-read-null-string-in-c-sharp-winrt-component-from-winjs
if (userid == null)
userid = "";
if (password == null)
password = "";
var auth = lc.CreateAuthInfo(username, userid, password, "", "", domain);
lc.AddAuthInfo(auth);
......
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