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 }