Skip to content

Form.cc: fix crash when editing form field

defaultResources->lookupFont() may return nullptr when it cannot find the font, so handle that.

Crash happens in both Evince and Okular.

Please check out Evince issue for reproducer file and stacktrace (thanks Simon McFarlane):
https://gitlab.gnome.org/GNOME/evince/-/issues/1796

Merge request reports