op.#List causes nil pointer dereference in KubeVela 1.10.7 when listing namespace-scoped resources
Author: Paranitharan1110Created Aug 4, 2026Updated Oct 1, 2026
op.#List in KubeVela 1.10.7 throws a nil pointer dereference panic at workflow step render time when listing namespace-scoped resources across all namespaces.
Error:
invalid cue task for evaluation: runtime error: invalid memory address or nil pointer dereferenceWorkflow step status:
name: check-app-exists
phase: failed
reason: Rendering
message: 'invalid cue task for evaluation: runtime error: invalid memory address or nil pointer dereference'To Reproduce
- Create a
WorkflowStepDefinitionusingop.#Liston any namespace-scoped resource (e.g,Application):
myList: op.#List & {
cluster: "local"
resource: {
apiVersion: "core.oam.dev/v1beta1"
kind: "Application"
}
filter: {}
}
items: *[] | myList.list.items- Apply a KubeVela
Applicationthat uses this workflow step - Observe the workflow step fails with NPE at
Renderingphase
Expected behavior
op.#List returns an empty list or the matched resources without panicking.
Environment
| Field | Value |
|---|---|
| KubeVela version | 1.10.7 |
| Previous working version | 1.9.12 |
| Kubernetes version | v1.29 |
| Resource kind affected | Any namespace-scoped resource |
| Cluster-scoped resources | Not affected |
Additional context
- Guarding with
*[] | myList.list.itemsdoes not prevent the panic — it occurs inside theop.#Listprovider before returning op.#Readis unaffected and works correctly in1.10.7
Source: kubevela/kubevela