Skip to content

Commit 45f9b81

Browse files
authored
Simple typo bugfix (NPE) (#1731)
No issue, just spotted.
1 parent 368ddec commit 45f9b81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultModelXmlFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public void write(XmlWriterRequest<Model> request) throws XmlWriterException {
105105
w.write(outputStream, content);
106106
} else {
107107
try (OutputStream os = Files.newOutputStream(path)) {
108-
w.write(outputStream, content);
108+
w.write(os, content);
109109
}
110110
}
111111
} catch (Exception e) {

0 commit comments

Comments
 (0)