From 0ec4d5964c56b0f4c68fc23416223d5920fa9434 Mon Sep 17 00:00:00 2001 From: Green Sky Date: Wed, 30 Oct 2024 15:02:22 +0100 Subject: [PATCH] make auto accept check for object validity --- plugins/transfer_auto_accept.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/transfer_auto_accept.cpp b/plugins/transfer_auto_accept.cpp index ad51ae4..8e89e4b 100644 --- a/plugins/transfer_auto_accept.cpp +++ b/plugins/transfer_auto_accept.cpp @@ -49,6 +49,10 @@ void TransferAutoAccept::iterate(void) { } void TransferAutoAccept::checkObj(ObjectHandle o) { + if (!o) { + return; // invalid object + } + if (o.all_of()) { return; // already accepted }