diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-04 13:43:03 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-04 13:43:03 +0100 |
commit | 9b57d0b379935e053ef050b0379c65fc32810bc1 (patch) | |
tree | 329c41fac9a3a490a5db3cd50cf3348fb93e2cb1 /sonar-plugin-api | |
parent | 181202a7bcc7764e16c05f8ad93ef748dcc1985b (diff) | |
download | sonarqube-9b57d0b379935e053ef050b0379c65fc32810bc1.tar.gz sonarqube-9b57d0b379935e053ef050b0379c65fc32810bc1.zip |
Fix bug on deprecated profiles
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java index 2da2c6c2352..b773d4076ec 100644 --- a/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java +++ b/sonar-plugin-api/src/main/java/org/sonar/api/rules/ActiveRule.java @@ -288,6 +288,6 @@ public class ActiveRule implements Cloneable { * @since 2.6 */ public boolean isEnabled() { - return getRule().isEnabled(); + return getRule()!=null && getRule().isEnabled(); } } |