Skip to content

Commit

Permalink
halt shred on stk_verify_baseclass when ptr is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
gewang committed Nov 20, 2024
1 parent 7256d86 commit 9c05525
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/ugen_stk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 9c05525

Please sign in to comment.