aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service/search
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/search')
-rw-r--r--juick-server/src/main/java/com/juick/service/search/SphinxSearchServiceImpl.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/service/search/SphinxSearchServiceImpl.java b/juick-server/src/main/java/com/juick/service/search/SphinxSearchServiceImpl.java
index 161e0fb2..aa903545 100644
--- a/juick-server/src/main/java/com/juick/service/search/SphinxSearchServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/search/SphinxSearchServiceImpl.java
@@ -27,12 +27,12 @@ public class SphinxSearchServiceImpl implements SearchService {
public SphinxSearchServiceImpl(JdbcTemplate searchJdbcTemplate) {
- Assert.notNull(searchJdbcTemplate);
+ Assert.notNull(searchJdbcTemplate, "JdbcTemplate must be initialized");
this.namedParameterSearchJdbcTemplate = new NamedParameterJdbcTemplate(searchJdbcTemplate);
}
public SphinxSearchServiceImpl(DataSource searchDataSource) {
- Assert.notNull(searchDataSource);
+ Assert.notNull(searchDataSource, "DataSource must be initialized");
this.namedParameterSearchJdbcTemplate = new NamedParameterJdbcTemplate(searchDataSource);
}