diff --git a/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java b/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java index 7c0061f4b0..5787bd7e08 100644 --- a/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java +++ b/pmd-test/src/main/java/net/sourceforge/pmd/AbstractLanguageVersionTest.java @@ -111,6 +111,8 @@ public class AbstractLanguageVersionTest { RuleSetFactory factory = new RuleSetFactory(); + if (rulesetFilenames.trim().isEmpty()) return; + String[] rulesets = rulesetFilenames.split(","); for (String r : rulesets) { InputStream stream = ResourceLoader.loadResourceAsStream(r);