Call populateSettings in CheckMojo#canGenerateReport to address NPE

This commit is contained in:
Matt Nelson
2017-08-15 15:12:29 -05:00
parent fb2b3159e8
commit 60b1775e37

View File

@@ -62,6 +62,7 @@ public class CheckMojo extends BaseDependencyCheckMojo {
*/
@Override
public boolean canGenerateReport() {
populateSettings();
boolean isCapable = false;
for (Artifact a : getProject().getArtifacts()) {
if (!getArtifactScopeExcluded().passes(a.getScope())) {