aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-cpd-plugin
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-02-13 12:12:14 +0100
committerJulien HENRY <julien.henry@sonarsource.com>2014-02-13 15:29:14 +0100
commite894e5443bc9cc452a0e00914db2afadb8a25fce (patch)
tree5a43d8364c573732308d245a05d29267710112be /plugins/sonar-cpd-plugin
parent282e80ded109c70910d94f5a12decdf40697a4a7 (diff)
downloadsonarqube-e894e5443bc9cc452a0e00914db2afadb8a25fce.tar.gz
sonarqube-e894e5443bc9cc452a0e00914db2afadb8a25fce.zip
Fix some quality flaws
Diffstat (limited to 'plugins/sonar-cpd-plugin')
-rw-r--r--plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarBridgeEngine.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarBridgeEngine.java b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarBridgeEngine.java
index 6512f6fc8fa..9f6bb9d1f67 100644
--- a/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarBridgeEngine.java
+++ b/plugins/sonar-cpd-plugin/src/main/java/org/sonar/plugins/cpd/SonarBridgeEngine.java
@@ -92,6 +92,9 @@ public class SonarBridgeEngine extends CpdEngine {
}
CpdMapping mapping = getMapping(languageKey);
+ if (mapping == null) {
+ return;
+ }
// Create index
SonarDuplicationsIndex index = indexFactory.create(project);