Found a crash here. If the target was deleted (e.g. a summoned creature with expired lifetime) then getTarget() will return an empty Ptr. Same thing would happen if the target moves to an inactive cell.