You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[MNG-8178] Fall back to System.getProperty for missing context props
A call to context.getSystemProperties() may yield empty an empty map, or
one missing the desired key, which makes a subsequent call of
toLowerCase fail with a NullPointerException.
Fall-back to using System.getProperty (with an empty default, in case
that one fails too).
Copy file name to clipboardExpand all lines: maven-model-builder/src/main/java/org/apache/maven/model/profile/activation/OperatingSystemProfileActivator.java
+15-3Lines changed: 15 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@
22
22
importjavax.inject.Singleton;
23
23
24
24
importjava.util.Locale;
25
+
importjava.util.Map;
25
26
26
27
importorg.apache.maven.model.Activation;
27
28
importorg.apache.maven.model.ActivationOS;
@@ -42,6 +43,14 @@ public class OperatingSystemProfileActivator implements ProfileActivator {
0 commit comments