Fix NPE at Database.java line 199.

This commit is contained in:
Fabian Schlenz 2016-07-15 07:01:09 +02:00
parent 051c0a31af
commit f2b6bc6e16
1 changed files with 1 additions and 1 deletions

View File

@ -195,7 +195,7 @@ public class Database {
}
ps.setInt(5, msg.getFromId());
if (msg.getFwdFrom() != null) {
if (msg.getFwdFrom() != null && msg.getFwdFrom().getFromId() != null) {
ps.setInt(6, msg.getFwdFrom().getFromId());
} else {
ps.setNull(6, Types.INTEGER);