This is an automated email from the ASF dual-hosted git repository.
sdedic pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/netbeans.git
The following commit(s) were added to refs/heads/master by this push:
new 5f2b9b0 [NETBEANS-6102] no/null mapping should be handled as disabled
action.
new 6fb7a62 Merge pull request #3234 from sdedic/maven/npe-null-mapping
5f2b9b0 is described below
commit 5f2b9b0874cf4c381a9bcfb5564dcf288caacf50
Author: Svata Dedic <[email protected]>
AuthorDate: Mon Oct 11 19:37:48 2021 +0200
[NETBEANS-6102] no/null mapping should be handled as disabled action.
---
.../maven/src/org/netbeans/modules/maven/execute/ActionToGoalUtils.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/java/maven/src/org/netbeans/modules/maven/execute/ActionToGoalUtils.java
b/java/maven/src/org/netbeans/modules/maven/execute/ActionToGoalUtils.java
index fbb4329..d8aa361 100644
--- a/java/maven/src/org/netbeans/modules/maven/execute/ActionToGoalUtils.java
+++ b/java/maven/src/org/netbeans/modules/maven/execute/ActionToGoalUtils.java
@@ -198,7 +198,7 @@ public final class ActionToGoalUtils {
* @since 2.149
*/
public static boolean isDisabledMapping(NetbeansActionMapping am) {
- return am.getGoals().isEmpty();
+ return am == null || am.getGoals().isEmpty();
}
public static boolean isActionEnable(String action, NbMavenProjectImpl
project, ProjectConfiguration c, Lookup lookup) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists