diff --git a/turbolinks/src/main/java/co/faria/turbolinks/TurbolinksSession.java b/turbolinks/src/main/java/co/faria/turbolinks/TurbolinksSession.java index cce1e9f..c4fb99c 100644 --- a/turbolinks/src/main/java/co/faria/turbolinks/TurbolinksSession.java +++ b/turbolinks/src/main/java/co/faria/turbolinks/TurbolinksSession.java @@ -490,7 +490,11 @@ public TurbolinksSession view(TurbolinksView turbolinksView) { @Override public void onRefresh() { resetToColdBoot(); - turbolinksAdapter.visitProposedToLocationWithAction(location, ACTION_REPLACE); + if (location != null) { + turbolinksAdapter.visitProposedToLocationWithAction(location, ACTION_REPLACE); + } else { + TurbolinksLog.e("visitProposedToLocationWithAction called with NULL location!"); + } } }); }