-
-
Notifications
You must be signed in to change notification settings - Fork 532
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#47: Fix NPE when branch is orphaned
Where a Pull Request no longer has a target branch - such as happens when the branch is deleted from SonarQube after the Pull Request is analysed - the `base` field in the branch information will be `null`. To prevent a `NullPointerException` being thrown in this scenario, an explicit check is being added for this field being `null` before attempting to extract the text value from it.
- Loading branch information
Showing
2 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters