diff --git a/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/box/heif_box.cpp b/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/box/heif_box.cpp index beba58f9c008965fb902493bdc8dda84a7f59261..401cdea4c45e7dfd59d9347489364ec34caf32a9 100644 --- a/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/box/heif_box.cpp +++ b/plugins/common/libs/image/libextplugin/src/heif_impl/heif_parser/box/heif_box.cpp @@ -269,7 +269,9 @@ heif_error HeifBox::ReadChildren(HeifStreamReader &reader, uint32_t &recursionCo if (error != heif_error_ok) { return error; } - children_.push_back(std::move(box)); + if (box != nullptr) { + children_.push_back(std::move(box)); + } } return reader.GetError(); }