Skip to content

Commit

Permalink
Allow null Play.routes in Router.detectChanges()
Browse files Browse the repository at this point in the history
Signed-off-by: cies <cies-AT@stager-DOT.nl>
  • Loading branch information
cies authored and asolntsev committed Jan 11, 2023
1 parent f038e24 commit 7c40b50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions framework/src/play/mvc/Router.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ public static void detectChanges() {
if (Play.mode == Mode.PROD && lastLoading > 0) {
return;
}
if (Play.routes == null) {
return;
}
if (Play.routes.lastModified() > lastLoading) {
loadRoutesFromFile();
} else {
Expand Down

0 comments on commit 7c40b50

Please sign in to comment.