Corrected a nullpo report in 4c8d773d72ae134f7cc4d43861104ecd9f4ae134

Special thanks to ossi0110

Signed-off-by: Haru <haru@dotalux.com>