Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a workaround for nulls in non-nullable fields #571

Merged
merged 2 commits into from
May 27, 2024

Conversation

jplewa
Copy link
Member

@jplewa jplewa commented Apr 23, 2024

Task

Related to: #402

Description

This is absolutely not a fix, however no one will have the time to actually fix this any time soon and right now there is no way to use functions such as this one (we immediately get a NPE in toKotlin). It's actually a great fear of mine that one of the libraries that I use in my demo presentations will break like this 🙈 The actual fix will presumably be to make all fields lazy and only report errors once they're touched by the user. With this workaround we will at least have a way to make a function/resource work after someone reports such a problem in one of the providers.

@jplewa jplewa self-assigned this Apr 23, 2024
@jplewa jplewa requested a review from a team as a code owner April 23, 2024 21:25
@jplewa jplewa requested review from myhau and ddzikon April 23, 2024 21:25
@jplewa jplewa force-pushed the 402-temporary-workaround-for-unexpected-nulls branch from 3048fba to 2793075 Compare April 23, 2024 21:28
@jplewa jplewa changed the title add a workaround for nulls in non-nullable fields Add a workaround for nulls in non-nullable fields Apr 23, 2024
Copy link
Member

@myhau myhau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a bit hacky, but I understand the need.

This change might break compilation in some of our codebases (E2E tests, jvm-lab project), but you probably already know that (+ it's easy to fix).

Signed-off-by: Julia Plewa <[email protected]>
@jplewa jplewa force-pushed the 402-temporary-workaround-for-unexpected-nulls branch from 0ea1430 to 99d7509 Compare May 27, 2024 13:25
@jplewa jplewa merged commit e7eb2f2 into main May 27, 2024
9 checks passed
@jplewa jplewa deleted the 402-temporary-workaround-for-unexpected-nulls branch May 27, 2024 13:42
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.

2 participants