Prevent NPE

pull/215/head
M66B 5 months ago
parent 99da99dfb9
commit cc4bee7c39

@ -274,6 +274,7 @@ public class ActivityCompose extends ActivityBase implements FragmentManager.OnB
boolean attach_new = prefs.getBoolean("attach_new", true); boolean attach_new = prefs.getBoolean("attach_new", true);
if (!attach_new && !create && if (!attach_new && !create &&
args != null &&
args.size() == 1 && args.size() == 1 &&
(args.containsKey("to") || (args.containsKey("to") ||
args.containsKey("attachments"))) { args.containsKey("attachments"))) {

Loading…
Cancel
Save