diff --git a/devmode/src/main/java/org/jboss/shamrock/dev/RuntimeCompilationSetup.java b/devmode/src/main/java/org/jboss/shamrock/dev/RuntimeCompilationSetup.java index 06f97bcd91407..f284f695ccf77 100644 --- a/devmode/src/main/java/org/jboss/shamrock/dev/RuntimeCompilationSetup.java +++ b/devmode/src/main/java/org/jboss/shamrock/dev/RuntimeCompilationSetup.java @@ -52,7 +52,7 @@ public static RuntimeUpdatesProcessor setup() throws Exception { log.log(Level.SEVERE, "Failed to create compiler, runtime compilation will be unavailable", e); return null; } - RuntimeUpdatesProcessor processor = new RuntimeUpdatesProcessor(Paths.get(classesDir), Paths.get(sourcesDir), Paths.get(resourcesDir), compiler); + RuntimeUpdatesProcessor processor = new RuntimeUpdatesProcessor(Paths.get(classesDir), sourcesDir == null ? null : Paths.get(sourcesDir), resourcesDir == null ? null : Paths.get(resourcesDir), compiler); HandlerWrapper wrapper = createHandlerWrapper(processor); //TODO: we need to get these values from the config in runtime mode HttpConfig config = new HttpConfig();