Skip to content

Commit 84ddff3

Browse files
committed
Check config JSON before trying to Open File
1 parent f85c01e commit 84ddff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pmd.groovy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (filesToAnalyse.isEmpty()) {
2626
}
2727

2828
def ruleSetPath
29-
if ( new File(parsedConfig.config).exists() ) {
29+
if ( parsedConfig.config && (new File(parsedConfig.config).exists()) ) {
3030
ruleSetPath = parsedConfig.config
3131
} else {
3232
ruleSetPath = "/usr/src/app/ruleset.xml"

0 commit comments

Comments
 (0)