-
Notifications
You must be signed in to change notification settings - Fork 70
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 null check before reading GitHub response #563
Conversation
/retest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we add the test for that?
done |
/retest |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tolusha, vinokurig The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Build 3.10 :: server_3.x/239: Console, Changes, Git Data |
Build 3.10 :: server_3.x/238: Console, Changes, Git Data |
Build 3.10 :: sync-to-downstream_3.x/4695: Console, Changes, Git Data |
Build 3.10 :: sync-to-downstream_3.x/4696: Console, Changes, Git Data |
Build 3.10 :: push-latest-container-to-quay_3.x/3313: Console, Changes, Git Data |
Build 3.10 :: get-sources-rhpkg-container-build_3.x/4491: server : 3.x :: Build 55672011 : quay.io/devspaces/server-rhel8:3.10-9 |
Build 3.10 :: push-latest-container-to-quay_3.x/3314: Console, Changes, Git Data |
Build 3.10 :: server_3.x/238: Upstream sync done; /DS_CI/sync-to-downstream_3.x/4695 triggered |
Build 3.10 :: update-digests_3.x/4360: Console, Changes, Git Data |
Build 3.10 :: operator-bundle_3.x/2072: Console, Changes, Git Data |
Build 3.10 :: get-sources-rhpkg-container-build_3.x/4492: server : 3.x :: Build 55672102 : quay.io/devspaces/server-rhel8:3.10-10 |
Build 3.10 :: server_3.x/239: Upstream sync done; /DS_CI/sync-to-downstream_3.x/4696 triggered |
Build 3.10 :: sync-to-downstream_3.x/4697: Console, Changes, Git Data |
Build 3.10 :: push-latest-container-to-quay_3.x/3315: Console, Changes, Git Data |
Build 3.10 :: copyIIBsToQuay/1918: Console, Changes, Git Data |
Build 3.10 :: sync-to-downstream_3.x/4697: Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.x/4493 triggered; /job/DS_CI/job/dsc_3.x triggered; |
Build 3.10 :: operator-bundle_3.x/2072: Upstream sync done; /DS_CI/sync-to-downstream_3.x/4697 triggered |
Build 3.10 :: dsc_3.x/1379: Console, Changes, Git Data |
Build 3.10 :: update-digests_3.x/4360: Detected new images: rebuild operator-bundle |
Build 3.10 :: update-digests_3.x/4361: Console, Changes, Git Data |
Build 3.10 :: update-digests_3.x/4361: No new images detected: nothing to do! |
What does this PR do?
Add a
null
check to prevent NullPointer exception while readingbody
from the GitHub API response.response.body()
should not returnnull
according to the java documentation, but the NullPointer exception was found in the customer debug logs:Screenshot/screencast of this PR
What issues does this PR fix or reference?
https://issues.redhat.com/browse/CRW-4506
How to test this PR?
N/A
PR Checklist
As the author of this Pull Request I made sure that:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.