Handle nullptr returned from the shader manager


Sometimes the shader manager returns a nullptr when fetching the shader from a handle, so the return value needs to be checked before it is accessed.

Pick-to: 6.5 6.4 5.15
Change-Id: Ia021cd8f22ceb2626a7a2734b7e346fbcc8e0301
Reviewed-by: Paul Lemire <paul.lemire@kdab.com>
commitbffdaabaa5cd9d7fdc64e4124817b504319708e1
parent2280f17ad2fda7501eb2b4023f3244940cee02a1
authorMartin Andersson <martin.andersson@evoma.se>
committerPaul Lemire <paul.lemire@kdab.com>
commit timeFri, 16 Dec 2022 09:54:21 +0000