Skip to content

Commit

Permalink
Merge pull request #43315 from Dilhasha/config-null-check
Browse files Browse the repository at this point in the history
[2201.8.x] Avoid NPE during module name check
  • Loading branch information
Dilhasha authored Aug 23, 2024
2 parents 51f6529 + 85ff057 commit ee99361
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 ee99361

Please sign in to comment.