summaryrefslogtreecommitdiff
path: root/Juick/ViewModels
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewModels')
-rw-r--r--Juick/ViewModels/LoginViewModel.cs2
-rw-r--r--Juick/ViewModels/PageViewModel.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/Juick/ViewModels/LoginViewModel.cs b/Juick/ViewModels/LoginViewModel.cs
index 9589f08..f6f50ec 100644
--- a/Juick/ViewModels/LoginViewModel.cs
+++ b/Juick/ViewModels/LoginViewModel.cs
@@ -60,7 +60,7 @@ namespace Juick.ViewModels
App.AppContext.Account.Password = Password;
App.AppContext.Account.IsAuthenticated = true;
App.AppContext.EnableNotifications();
- ((App)Application.Current).NavigateTo(NextUri, true);
+ ((App)Application.Current).NavigateTo(NextUri);
}
else if (response.StatusCode ==
HttpStatusCode.Forbidden)
diff --git a/Juick/ViewModels/PageViewModel.cs b/Juick/ViewModels/PageViewModel.cs
index c13e6f1..152e9d9 100644
--- a/Juick/ViewModels/PageViewModel.cs
+++ b/Juick/ViewModels/PageViewModel.cs
@@ -73,7 +73,7 @@ namespace Juick.ViewModels
_context.Client.ExecuteAsync<List<Message>>(request, response =>
{
_context.IsDataLoading = false;
- if (response.ErrorException != null)
+ if (response == null || response.ErrorException != null)
{
return;
}