diff --git a/common/flatpak-utils.c b/common/flatpak-utils.c index 0e6b028fe..93fa14de1 100644 --- a/common/flatpak-utils.c +++ b/common/flatpak-utils.c @@ -6750,7 +6750,8 @@ flatpak_pull_from_bundle (OstreeRepo *repo, if (metadata == NULL) return FALSE; - metadata_size = strlen (metadata_contents); + if (metadata_contents != NULL) + metadata_size = strlen (metadata_contents); if (!ostree_repo_get_remote_option (repo, remote, "collection-id", NULL, &remote_collection_id, NULL))