diff --git a/framework/src/play/mvc/Router.java b/framework/src/play/mvc/Router.java index 1ef6d1f0..460ac6c2 100644 --- a/framework/src/play/mvc/Router.java +++ b/framework/src/play/mvc/Router.java @@ -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 {