diff --git a/devtools/maven/src/main/java/io/quarkus/maven/TrackConfigChangesMojo.java b/devtools/maven/src/main/java/io/quarkus/maven/TrackConfigChangesMojo.java index 07de86749ea52..b023983db78b2 100644 --- a/devtools/maven/src/main/java/io/quarkus/maven/TrackConfigChangesMojo.java +++ b/devtools/maven/src/main/java/io/quarkus/maven/TrackConfigChangesMojo.java @@ -126,9 +126,8 @@ protected void doExecute() throws MojoExecutionException, MojoFailureException { curatedApplication = bootstrapApplication(launchMode); if (prevConfigExists || dumpCurrentWhenRecordedUnavailable) { final Path targetFile = getOutputFile(outputFile, launchMode.getDefaultProfile(), "-config-check"); - Properties compareProps = null; + Properties compareProps = new Properties(); if (prevConfigExists) { - compareProps = new Properties(); try (BufferedReader reader = Files.newBufferedReader(compareFile)) { compareProps.load(reader); } catch (IOException e) {