Fix driver expression bytecode validation crash if parsing fails.

Another NULL pointer access: nothing to validate if it already failed.
This commit is contained in:
2018-09-16 10:46:28 +03:00
parent db0c37f2f7
commit 8c87e681a5

View File

@@ -549,7 +549,7 @@ float BPY_driver_exec(struct PathResolvedRNA *anim_rna, ChannelDriver *driver, C
}
#ifdef USE_BYTECODE_WHITELIST
if (is_recompile) {
if (is_recompile && expr_code) {
if (!(G.f & G_SCRIPT_AUTOEXEC)) {
if (!bpy_driver_secure_bytecode_validate(
expr_code, (PyObject *[]){