Please apply attached patch, I moved the affected inside the previous Null-pointer check guarded area.
Created attachment 10960 [details] [review] Moved that in guarded block...
Fixed in git.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.