Skip to content

fix: skip null output documents#375

Merged
Peefy merged 1 commit intocrossplane-contrib:mainfrom
vlada-dudr:fix/prevent-null-crash
Mar 15, 2026
Merged

fix: skip null output documents#375
Peefy merged 1 commit intocrossplane-contrib:mainfrom
vlada-dudr:fix/prevent-null-crash

Conversation

@vlada-dudr
Copy link

Description of your changes

This little patch fixes condition when kcl program returns null document. If not handled function panics and crashes. This patch solves the issue by just skipping such documents.

Maybe it is more desirable to error out instead of skipping?

I have:

  • Read and followed Crossplane's [contribution process].
  • Added or updated unit tests for my change.

@vlada-dudr vlada-dudr force-pushed the fix/prevent-null-crash branch from ebe3277 to 651884d Compare March 13, 2026 21:23
Otherwise function panics and crashes.

Signed-off-by: Vladimír Dudr <dudr@metrans.cz>
@vlada-dudr vlada-dudr force-pushed the fix/prevent-null-crash branch from 651884d to 87c98ea Compare March 13, 2026 21:25
@Peefy Peefy merged commit 631313b into crossplane-contrib:main Mar 15, 2026
7 checks passed
@Peefy
Copy link
Collaborator

Peefy commented Mar 15, 2026

Thnak you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants