GP-5394: Fix issue evaluating watches when no thread (on previous coords)

This commit is contained in:
Dan
2025-02-28 20:46:10 +00:00
parent 7e3468a17e
commit 6c28d25214

View File

@@ -133,7 +133,14 @@ public class DefaultWatchRow implements WatchRow {
}
// Do not accidentally hang the Swing thread on evaluation
WatchValue fullValue = compiled.evaluate(executor);
byte[] prevValue = prevExec == null ? null : compiled.evaluate(prevExec);
byte[] prevValue;
try {
prevValue = prevExec == null ? null : compiled.evaluate(prevExec);
}
catch (Exception e) {
Msg.trace(this, "Error in evaluating previous value. Ignoring.", e);
prevValue = null;
}
synchronized (lock) {
if (executor != provider.asyncWatchExecutor) {
return;