Skip to content

Commit

Permalink
Check for null in dependency group name.
Browse files Browse the repository at this point in the history
  • Loading branch information
baron1405 committed Jun 22, 2024
1 parent 8cac048 commit faa9a39
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private void validateReleaseDependencies(final Project project) {
for (final Dependency dep : config.getDependencies()) {
final String version = dep.getVersion();
final String group = dep.getGroup();
if (CTHING_GROUPS.contains(group)
if (group != null && CTHING_GROUPS.contains(group)
&& (version == null || SNAPHOT_VERSION_PATTERN.matcher(version).matches())) {
proj.getLogger().error(
"Release build depends on snapshot artifact {}:{}:{} ({})",
Expand Down

0 comments on commit faa9a39

Please sign in to comment.