fix null pointer exception

This commit is contained in:
sk 2022-11-11 17:59:53 +01:00
parent 443b985b06
commit 5ec4e5339b
1 changed files with 1 additions and 1 deletions

View File

@ -668,7 +668,7 @@ public class ComposeFragment extends MastodonToolbarFragment implements OnBackPr
if(!attachments.isEmpty()){
req.mediaIds=attachments.stream().map(a->a.serverAttachment.id).collect(Collectors.toList());
}
if(replyTo!=null || editingStatus.inReplyToId!=null){
if(replyTo!=null || (editingStatus != null && editingStatus.inReplyToId!=null)){
req.inReplyToId=editingStatus!=null ? editingStatus.inReplyToId : replyTo.id;
}
if(!pollOptions.isEmpty()){