From 9c055253a4113268640ee151de7f1f2d6f54ad94 Mon Sep 17 00:00:00 2001 From: Ge Wang Date: Tue, 19 Nov 2024 23:40:31 -0800 Subject: [PATCH] halt shred on stk_verify_baseclass when ptr is NULL --- src/core/ugen_stk.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/ugen_stk.cpp b/src/core/ugen_stk.cpp index 843ece0ce..8779a1084 100644 --- a/src/core/ugen_stk.cpp +++ b/src/core/ugen_stk.cpp @@ -10532,6 +10532,10 @@ t_CKBOOL stk_verify_baseclass( void * ptr, const std::string & typeName, Chuck_V EM_exception( "MethodCalledByAbstractClass: '%s' is an abstract class\n" "...call the method from one of its non-abstract subclasses | shred[id=%lu:%s]", typeName.c_str(), shred->xid, shred->name.c_str() ); + // halt the shred + shred->is_running = FALSE; + shred->is_done = TRUE; + // return false return FALSE; }