1
0
mirror of https://github.com/fabianonline/telegram_backup.git synced 2024-11-22 16:56:16 +00:00

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

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);