diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2019-03-29 17:29:07 +0100 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2019-04-23 10:37:54 +0200 |
commit | 41c07310118350e2d94df32498bbcb7b39ef9629 (patch) | |
tree | c60adc8d50dfb63e0fdd70e28b9a328e27cfc914 /server/sonar-db-dao | |
parent | 7014b0c78f6fff0441fc4ee80a23e9885f9965b8 (diff) | |
download | sonarqube-41c07310118350e2d94df32498bbcb7b39ef9629.tar.gz sonarqube-41c07310118350e2d94df32498bbcb7b39ef9629.zip |
SONAR-11753 move "failed analysis" notification to email specific algo
Diffstat (limited to 'server/sonar-db-dao')
-rw-r--r-- | server/sonar-db-dao/src/main/java/org/sonar/db/property/PropertiesDao.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/property/PropertiesDao.java b/server/sonar-db-dao/src/main/java/org/sonar/db/property/PropertiesDao.java index 805cc993faa..465c8e4d9e2 100644 --- a/server/sonar-db-dao/src/main/java/org/sonar/db/property/PropertiesDao.java +++ b/server/sonar-db-dao/src/main/java/org/sonar/db/property/PropertiesDao.java @@ -76,6 +76,10 @@ public class PropertiesDao implements Dao { } public boolean hasProjectNotificationSubscribersForDispatchers(String projectUuid, Collection<String> dispatcherKeys) { + if (dispatcherKeys.isEmpty()) { + return false; + } + try (DbSession session = mybatis.openSession(false); Connection connection = session.getConnection(); PreparedStatement pstmt = createStatement(projectUuid, dispatcherKeys, connection); |