From c4af112df4d916ecb3bbd54786d00d41ec988ee9 Mon Sep 17 00:00:00 2001 From: Sebastian Wick Date: Thu, 30 Oct 2025 21:08:02 +0100 Subject: [PATCH] transaction: Handle --include-sdk if SDK is installed in other dir If an SDK is already installed in a dir that is not targeted with a flatpak transaction, and the transaction has auto_install_sdk set, add_new_dep_op returns NULL in dep_op which is not correctly handled in add_deps. Fixes #5894 --- common/flatpak-transaction.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/flatpak-transaction.c b/common/flatpak-transaction.c index a36e27a6..c000115e 100644 --- a/common/flatpak-transaction.c +++ b/common/flatpak-transaction.c @@ -2660,7 +2660,7 @@ add_deps (FlatpakTransaction *self, return FALSE; } - if (sdk_op->kind != FLATPAK_TRANSACTION_OPERATION_UNINSTALL) + if (sdk_op && sdk_op->kind != FLATPAK_TRANSACTION_OPERATION_UNINSTALL) { flatpak_transaction_operation_add_related_to_op (sdk_op, op); run_operation_before (sdk_op, op, 2);