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

Enhance NPE in operators that invoke functions #2262

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

Scottmitch
Copy link
Member

Motivation:
Some operators require a Functional interface that provide a
non-null result (e.g. flatMap). When this scenario occurs
as NPE is propagated however the control flow is async so
it is challenging to determine where the code is that caused
the NPE.

Modifications:

  • Enhance the NPE to include a reference to the Functional
    interface which provides more context as to where the NPE
    originated from.

Motivation:
Some operators require a Functional interface that provide a
non-null result (e.g. flatMap). When this scenario occurs
as NPE is propagated however the control flow is async so
it is challenging to determine where the code is that caused
the NPE.

Modifications:
- Enhance the NPE to include a reference to the Functional
  interface which provides more context as to where the NPE
  originated from.
@Scottmitch Scottmitch marked this pull request as ready for review July 7, 2022 14:27
@Scottmitch
Copy link
Member Author

test failure due to #2265

@Scottmitch Scottmitch merged commit 6e023e0 into apple:main Jul 12, 2022
@Scottmitch Scottmitch deleted the operators_npe branch July 12, 2022 01:16
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