From 596c9b81536a646dfb2abd425b6a29a602b01b14 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Antonio=20D=C3=ADaz=20Miralles?= Date: Sun, 10 May 2026 11:44:04 +0200 Subject: [PATCH] Sanitize screen.current_record if it is already destroyed Closes #14827 (grafted from 9cb776c27fda504a91312636371273483f404152) --HG-- branch : 8.0 --- sao/src/screen.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sao/src/screen.js b/sao/src/screen.js index 973c719f53..8183090e44 100644 --- a/sao/src/screen.js +++ b/sao/src/screen.js @@ -1356,6 +1356,9 @@ }); }, get current_record() { + if (this.__current_record && this.__current_record.destroyed) { + this.__current_record = null; + } return this.__current_record; }, set current_record(record) {