diff --git a/lib/widgets/posts/post_item.dart b/lib/widgets/posts/post_item.dart index e2c7236..85e4563 100644 --- a/lib/widgets/posts/post_item.dart +++ b/lib/widgets/posts/post_item.dart @@ -293,7 +293,8 @@ class _PostItemState extends State<PostItem> { ), child: AttachmentList( parentId: widget.item.id.toString(), - attachmentsId: item.body['attachments'].cast<int>() ?? List.empty(), + attachmentsId: + item.body['attachments']?.cast<int>() ?? List.empty(), divided: true, ), ),