Elastic Agent Panic with nil pointer on `null` processor

Hi, I was wondering if anyone else has hit this issue, if I define a null processor in an integration policy, the Elastic Agent will immediately enter a crashloop with the error:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x5c9aa145445a]

To reproduce:

  1. Elastic Agent (8.16.2)
  2. Create an agent policy and assign agent to it
  3. Create an integration on the agent policy (only thing that matters is that it supports setting processors.
  4. Define a processor like:
processors:
- null

Observe when update rolls out that the agent is now in a crashloop.