jglick commented on code in PR #8433: URL: https://github.com/apache/netbeans/pull/8433#discussion_r2052396280
########## java/maven.junit/src/org/netbeans/modules/maven/junit/JUnitOutputListenerProvider.java: ########## @@ -325,10 +331,13 @@ private String getReportsDirectory(String groupId, String artifactId, String goa MavenProject currentProject = null; // get maven module from context if available OutputVisitor.Context context = visitor.getContext(); - if (context != null && context.getCurrentProject() != null) { - NbMavenProject subProject = context.getCurrentProject().getLookup().lookup(NbMavenProject.class); - if (subProject != null) { - currentProject = subProject.getMavenProject(); + if (context != null) { + Project cp = context.getCurrentProject(); + if (cp != null) { + NbMavenProject subProject = cp.getLookup().lookup(NbMavenProject.class); + if (subProject != null) { Review Comment: (Ignore whitespace changes to review.) -- 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: notifications-unsubscr...@netbeans.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@netbeans.apache.org For additional commands, e-mail: notifications-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists