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:
parent
051c0a31af
commit
f2b6bc6e16
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user