diff --git a/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp b/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp index a4a5000ef3..f46f4ab673 100644 --- a/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp +++ b/Userland/Libraries/LibPDF/Fonts/PS1FontProgram.cpp @@ -70,9 +70,9 @@ PDFErrorOr PS1FontProgram::parse_encrypted_portion(ByteBuffer const& buffe if (seek_name(reader, "lenIV")) m_lenIV = TRY(parse_int(reader)); - if (!seek_name(reader, "Subrs")) - return error("Missing subroutine array"); - auto subroutines = TRY(parse_subroutines(reader)); + Vector subroutines; + if (seek_name(reader, "Subrs")) + subroutines = TRY(parse_subroutines(reader)); if (!seek_name(reader, "CharStrings")) return error("Missing char strings array");