aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-02-04 13:43:03 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-02-04 13:43:03 +0100
commit9b57d0b379935e053ef050b0379c65fc32810bc1 (patch)
tree329c41fac9a3a490a5db3cd50cf3348fb93e2cb1 /sonar-plugin-api
parent181202a7bcc7764e16c05f8ad93ef748dcc1985b (diff)
downloadsonarqube-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.java2
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();
}
}