Skip to content

Commit

Permalink
Merge pull request #1 from eduvo/develop
Browse files Browse the repository at this point in the history
check location is not null
  • Loading branch information
Olexandr1904 authored May 6, 2022
2 parents 25d930a + c5090c9 commit e321a44
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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!");
}
}
});
}
Expand Down

0 comments on commit e321a44

Please sign in to comment.