aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-08-09 18:21:51 +0300
committerGravatar Vitaly Takmazov2018-08-09 18:21:51 +0300
commitbabb3a50a1c7e6101980a9577364b169b5c6654c (patch)
tree27f82bb04c79587bd9d844e916102eb6cc49d1ca /juick-server/src/main
parent244c5aac19f19b64d4e066b1e66da72f704cf36a (diff)
Fix attachments errors
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
index f79e4142..054503c1 100644
--- a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
@@ -118,7 +118,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ
insertMap.put("user_id", uid);
Instant now = Instant.now();
insertMap.put("ts", Timestamp.from(now));
- if (attachment != null) {
+ if (StringUtils.isNotEmpty(attachment)) {
insertMap.put("attach", attachment);
}
int mid = simpleJdbcInsert.executeAndReturnKey(insertMap).intValue();