File tree 1 file changed +4
-4
lines changed
src/main/java/pl/project13/maven/git
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1411,17 +1411,17 @@ public boolean shouldPropertiesEscapeUnicode() {
1411
1411
}
1412
1412
1413
1413
private void publishToAllSystemEnvironments (
1414
- LogInterface log ,
1415
- Properties propertiesToPublish ,
1416
- Properties contextProperties ) {
1414
+ @ Nonnull LogInterface log ,
1415
+ @ Nonnull Properties propertiesToPublish ,
1416
+ @ Nullable Properties contextProperties ) {
1417
1417
publishPropertiesInto (propertiesToPublish , project .getProperties ());
1418
1418
// some plugins rely on the user properties (e.g. flatten-maven-plugin)
1419
1419
publishPropertiesInto (propertiesToPublish , session .getUserProperties ());
1420
1420
1421
1421
if (injectAllReactorProjects ) {
1422
1422
Properties diffPropertiesToPublish = new Properties ();
1423
1423
propertiesToPublish .forEach ((k , v ) -> {
1424
- if (!contextProperties .contains (k )) {
1424
+ if (contextProperties == null || !contextProperties .contains (k )) {
1425
1425
diffPropertiesToPublish .setProperty (k .toString (), v .toString ());
1426
1426
}
1427
1427
});
You can’t perform that action at this time.
0 commit comments