Skip to content

Fix a crash when the cast fails

Ivan Čukić requested to merge work/ivan/dynamic-cast-should-be-checked into master

device.as is a dynamic cast which means it can fail and return a nullptr. Check validity before dereferencing.

Crash introduced in 18479ef3

Edited by Ivan Čukić

Merge request reports