package org.jboss.wolf.validator.impl.bom;

import org.apache.maven.model.DependencyManagement;
import org.apache.maven.model.Model;

public class BomFilterSimple implements BomFilter {

    @Override
    public boolean isBom(Model model) {
        if (model.getPackaging().equals("pom")) {
            if (model.getGroupId().contains("bom") || model.getArtifactId().contains("bom")) {
                DependencyManagement depMng = model.getDependencyManagement();
                if (depMng != null && depMng.getDependencies() != null && !depMng.getDependencies().isEmpty()) {
                    return true;
                }
            }
        }
        return false;
    }

}
@@ -266,16 +266,147 @@
 kaging()
+ != null &&%0A            model.getGroupId() != null &&%0A            model.getArtifactId() != null &&%0A            model.getPackaging()
 .equals(

fix NPE in BomFilterSimple