michael-o commented on code in PR #120:
URL:
https://github.com/apache/tomcat-maven-plugin/pull/120#discussion_r3117374251
##########
src/main/java/org/apache/tomcat/maven/common/run/DefaultClassLoaderEntriesCalculator.java:
##########
@@ -240,12 +242,11 @@ private void deleteDirectory( File directory, Log log )
protected boolean isInProjectReferences( Artifact artifact, MavenProject
project )
{
- if ( project.getProjectReferences() == null ||
project.getProjectReferences().isEmpty() )
+ if ( mavenSession == null || mavenSession.getProjects() == null ||
mavenSession.getProjects().isEmpty() )
Review Comment:
Do you expect the session to be empty? How can this be? `Objects#nonNull()`?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]