This is an automated email from the ASF dual-hosted git repository. jtulach 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 e12dbc0 Checking nullness of the the right variables e12dbc0 is described below commit e12dbc0207b0c944ebb50b5372b9050e1223499f Author: Jaroslav Tulach <jaroslav.tul...@oracle.com> AuthorDate: Fri Jun 11 14:04:54 2021 +0200 Checking nullness of the the right variables --- .../netbeans/modules/maven/newproject/ArchetypeTemplateHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/maven/src/org/netbeans/modules/maven/newproject/ArchetypeTemplateHandler.java b/java/maven/src/org/netbeans/modules/maven/newproject/ArchetypeTemplateHandler.java index 0dc2411..08b9889 100644 --- a/java/maven/src/org/netbeans/modules/maven/newproject/ArchetypeTemplateHandler.java +++ b/java/maven/src/org/netbeans/modules/maven/newproject/ArchetypeTemplateHandler.java @@ -71,11 +71,11 @@ public final class ArchetypeTemplateHandler extends CreateFromTemplateHandler { throw new IOException(Bundle.MSG_NoVersion()); } String artifactId = archetype.getProperty("artifactId"); // NOI18N - if (version == null) { + if (artifactId == null) { throw new IOException(Bundle.MSG_NoArtifactId()); } String groupId = archetype.getProperty("groupId"); // NOI18N - if (version == null) { + if (groupId == null) { throw new IOException(Bundle.MSG_NoGroupId()); } String packageName = archetype.getProperty("package"); // NOI18N --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org For additional commands, e-mail: commits-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists