fix null pointer exception
This commit is contained in:
parent
443b985b06
commit
5ec4e5339b
|
@ -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()){
|
||||
|
|
Loading…
Reference in New Issue