Fix to prevent rules from being cached between Jenkins builds even if suppression file is not specified.

Former-commit-id: 860fded462d768acb207ebe35464936d7f80f59c
This commit is contained in:
Steve Springett
2014-03-29 22:57:44 -05:00
parent b5a65c5e43
commit 40e13184ca

View File

@@ -93,6 +93,7 @@ public abstract class AbstractSuppressionAnalyzer extends AbstractAnalyzer {
private void loadSuppressionData() throws SuppressionParseException {
final String suppressionFilePath = Settings.getString(Settings.KEYS.SUPPRESSION_FILE);
if (suppressionFilePath == null) {
rules = null; // Set to null to fix issue with Jenkins plugin configuration changes between builds
return;
}
File file = null;