issue #19379: prevent crash