#7280·kubevela

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 dereference

Workflow step status:

yaml
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

  1. Create a WorkflowStepDefinition using op.#List on any namespace-scoped resource (e.g, Application):
cue
myList: op.#List & {
  cluster: "local"
  resource: {
    apiVersion: "core.oam.dev/v1beta1"
    kind:       "Application"
  }
  filter: {}
}
items: *[] | myList.list.items
  1. Apply a KubeVela Application that uses this workflow step
  2. Observe the workflow step fails with NPE at Rendering phase

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.items does not prevent the panic — it occurs inside the op.#List provider before returning
  • op.#Read is unaffected and works correctly in 1.10.7