Skip to content

Commit

Permalink
Avoid NPE during module name check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dilhasha committed Aug 22, 2024
1 parent 3e1bef6 commit 85ff057
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private static boolean isDirectDependency(Collection<ModuleDependency> moduleDep
dependency.descriptor().packageName().value().equals(packageName) &&
(moduleName == null
? dependency.descriptor().name().moduleNamePart() == null
: dependency.descriptor().name().moduleNamePart().equals(moduleName))
: moduleName.equals(dependency.descriptor().name().moduleNamePart()))
);
}

Expand Down

0 comments on commit 85ff057

Please sign in to comment.