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

#4965: Fix issues with gradle pre-6.4 #4995

Merged
merged 2 commits into from
Nov 27, 2022

Conversation

sdedic
Copy link
Member

@sdedic sdedic commented Nov 21, 2022

Fixes #4965. There are two issues, one NPE: simply the supplier parameter is not checked (can be null) before it is asked to supply a default. Next, another call to internal API, this time introduced by Gradle 6.4 was found - reported just as a warning, not affecting rest of the operation.

Added a unit test that gradle 6.1.1 loads a default project.

@sdedic sdedic linked an issue Nov 21, 2022 that may be closed by this pull request
@sdedic
Copy link
Member Author

sdedic commented Nov 21, 2022

OK, as the NB16 vote is already pending, I will probably rebase & target the master ... but can be reviewed anyway, differences between master and delivery are minimal.

cc: @neilcsmith-net

@sdedic sdedic self-assigned this Nov 21, 2022
@sdedic sdedic added kind:bug Bug report or fix Gradle [ci] enable "build tools" tests labels Nov 21, 2022
@sdedic sdedic added this to the NB17 milestone Nov 23, 2022
@lkishalmi lkishalmi changed the base branch from delivery to master November 27, 2022 02:12
Copy link
Contributor

@lkishalmi lkishalmi left a comment

Choose a reason for hiding this comment

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

Let's give it a try.

@lkishalmi lkishalmi merged commit 910c4ea into apache:master Nov 27, 2022
lkishalmi pushed a commit to lkishalmi/netbeans that referenced this pull request Nov 27, 2022
* Fix apache#4965: Avoid NPE: return null for no supplier.

* Improve compatibility for Gradle < 6.4
@lkishalmi lkishalmi added 16u1 and removed 16u1 labels Dec 6, 2022
lkishalmi pushed a commit that referenced this pull request Dec 6, 2022
* Fix #4965: Avoid NPE: return null for no supplier.

* Improve compatibility for Gradle < 6.4
lkishalmi pushed a commit that referenced this pull request Dec 15, 2022
* Fix #4965: Avoid NPE: return null for no supplier.

* Improve compatibility for Gradle < 6.4
Chris2011 pushed a commit to Chris2011/netbeans that referenced this pull request Dec 15, 2022
* Fix apache#4965: Avoid NPE: return null for no supplier.

* Improve compatibility for Gradle < 6.4
pepness pushed a commit to pepness/incubator-netbeans that referenced this pull request Jan 9, 2023
* Fix apache#4965: Avoid NPE: return null for no supplier.

* Improve compatibility for Gradle < 6.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gradle [ci] enable "build tools" tests kind:bug Bug report or fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gradle: "Failed to retrieve project information" (Gradle 6.1.1)
2 participants