Skip to content

Commit

Permalink
Fix NPE on module.name() (#655)
Browse files Browse the repository at this point in the history
I have only observed this NPE on partial compilation errors. This might not be strictly required but putting this fix in for that odd case.
  • Loading branch information
rbygrave authored Jul 25, 2024
1 parent 8ef1f3d commit 6a32209
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ void buildAutoRequiresAspects(Append writer, Set<String> autoRequires) {

void readModuleMetaData(TypeElement moduleType) {
final InjectModulePrism module = InjectModulePrism.getInstanceOn(moduleType);
details(module.name(), moduleType);
final String name = module == null ? null : module.name();
details(name, moduleType);
readFactoryMetaData(moduleType);
}

Expand Down

0 comments on commit 6a32209

Please sign in to comment.