add error handling

This commit is contained in:
Luke Pulverenti 2017-07-10 23:28:58 -04:00
parent 73544a4d72
commit 5d33a1d341

View File

@ -30,6 +30,10 @@ namespace Trakt.Helpers
{
return false;
}
if (string.IsNullOrWhiteSpace(tUser.UserName) || string.IsNullOrWhiteSpace(tUser.Password))
{
return false;
}
Guid traktUserGuid;
if (Guid.TryParse(tUser.LinkedMbUserId, out traktUserGuid) && traktUserGuid.Equals(userGuid))