From 6d81aed83ac45aeda8eb43e2f17c70a20bf114e8 Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 7 Mar 2019 10:18:42 +0000 Subject: [PATCH] Check if temp id is null --- app/src/main/java/eu/faircode/email/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/eu/faircode/email/Core.java b/app/src/main/java/eu/faircode/email/Core.java index ff407c3384..9683c5b14a 100644 --- a/app/src/main/java/eu/faircode/email/Core.java +++ b/app/src/main/java/eu/faircode/email/Core.java @@ -578,7 +578,7 @@ class Core { } Log.i(folder.name + " moved uid=" + uid); - if (jargs.length() > 2) { + if (jargs.length() > 2 && !jargs.isNull(2)) { long tmpid = jargs.getLong(2); try { db.beginTransaction();