diff options
author | Peter Wu <peter@lekensteyn.nl> | 2014-05-20 10:49:38 +0200 |
---|---|---|
committer | Peter Wu <peter@lekensteyn.nl> | 2014-05-20 10:49:38 +0200 |
commit | 915b5289b02db9c4809b009f4b8d9196c8436104 (patch) | |
tree | 91f72d4bb13e04d6fa70e8028d4ccb132aa57dad /src/database/QueryUtils.java | |
parent | 276adf93ffeb4e71a6fd06a181c2ec629a50007e (diff) | |
download | Datafiller-915b5289b02db9c4809b009f4b8d9196c8436104.tar.gz |
Reply user ID can be NULL
Diffstat (limited to 'src/database/QueryUtils.java')
-rw-r--r-- | src/database/QueryUtils.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/database/QueryUtils.java b/src/database/QueryUtils.java index a37b806..dac3ffc 100644 --- a/src/database/QueryUtils.java +++ b/src/database/QueryUtils.java @@ -113,7 +113,11 @@ public class QueryUtils { } else { tweetStatement.setLong("retweetid", null); } - tweetStatement.setLong("replyid", tweet.in_reply_to_user_id); + if (tweet.in_reply_to_user_id != null) { + tweetStatement.setLong("replyid", tweet.in_reply_to_user_id); + } else { + tweetStatement.setLong("replyid", null); + } // TODO: place is not a string... if (tweet.place != null) { tweetStatement.setString("place", tweet.place.full_name + " " + tweet.place.country); |