While adding some code to clear the Next field when popping from a task stack for safety reasons, the clear was placed outside of a nil pointer check. As a result, (*internal/task.Stack).Pop panicked when the Stack is empty. |
||
|---|---|---|
| .. | ||
| reflectlite | ||
| task | ||
While adding some code to clear the Next field when popping from a task stack for safety reasons, the clear was placed outside of a nil pointer check. As a result, (*internal/task.Stack).Pop panicked when the Stack is empty. |
||
|---|---|---|
| .. | ||
| reflectlite | ||
| task | ||