Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upFix for NPE when `paymentMethodProps.getProperties()` returns null. #1094
Conversation
This comment has been minimized.
This comment has been minimized.
I am fine with the PR as it is, but i am wondering if the fix should not be at the PluginProperties#merge level to handle the null case. Also, in our JAXRS layer, probably retuning null in the first place is not so great - an |
This comment has been minimized.
This comment has been minimized.
Hey @sbrossie - made the changes as you suggested. Should I revert the original change in |
sbrossie
approved these changes
Feb 8, 2019
This comment has been minimized.
This comment has been minimized.
pierre
merged commit b667017
into
killbill:master
Feb 11, 2019
5 checks passed
ci/circleci: build
Your tests passed on CircleCI!
Details
ci/circleci: integration-tests
Your tests passed on CircleCI!
Details
ci/circleci: test-h2
Your tests passed on CircleCI!
Details
ci/circleci: test-mysql
Your tests passed on CircleCI!
Details
ci/circleci: test-postgresql
Your tests passed on CircleCI!
Details
beccagaspard
deleted the
beccagaspard:add_payment_method_with_control_null_pointer_fix
branch
Feb 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
beccagaspard commentedFeb 8, 2019
Fix for NPE when
paymentMethodProps.getProperties()
returns null.When payment control plugins are in use and an
__EXTERNAL_PAYMENT__
payment method is added viaAccountApi::createPaymentMethod
, a NPE is thrown. Added check to skip merge when payment method properties are null.Full stacktrace: