NPE check (correct)

Added npe check in case the -Dorg.gradle.project.reports-format
parameter is not passed.