mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-17 23:04:07 +01:00
Merge pull request #846 from mattnelson/check_populateSettings
Call populateSettings in CheckMojo#canGenerateReport to address NPE
This commit is contained in:
@@ -62,6 +62,7 @@ public class CheckMojo extends BaseDependencyCheckMojo {
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean canGenerateReport() {
|
public boolean canGenerateReport() {
|
||||||
|
populateSettings();
|
||||||
boolean isCapable = false;
|
boolean isCapable = false;
|
||||||
for (Artifact a : getProject().getArtifacts()) {
|
for (Artifact a : getProject().getArtifacts()) {
|
||||||
if (!getArtifactScopeExcluded().passes(a.getScope())) {
|
if (!getArtifactScopeExcluded().passes(a.getScope())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user