-
Notifications
You must be signed in to change notification settings - Fork 200
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
java.lang.NullPointerException: Cannot get property 'status' on null object #409
Comments
Since it depends on your Nexus server, unfortunately you'll need to do some sleuthing in our code. The NPE is in the following method when trying to call gradle-versions-plugin/src/main/groovy/com/github/benmanes/gradle/versions/updates/Resolver.groovy Lines 168 to 183 in 7a04f86
Can you try adding a null check and rerun?. boolean accepted = (metadata == null) ||
((revision == 'release') && (metadata.status == 'release')) ||
((revision == 'milestone') && (metadata.status != 'integration')) ||
(revision == 'integration') || (selection.candidate.version == 'none') If you bump up the version in |
Thanks for the quick response :-) That fix did the trick, no more exceptions and its able to resolve the dependencies now in our Nexus repo. |
Kicked off the release (via CI). For some reason the sync from jcenter to gradle's plugin repository takes a few hours, but would certainly be live by tomorrow. |
On running dependencyUpdates using version 0.28.0 of the plugin I am getting the following exception. This happens against my companies Nexus server which has various uploads (in a bad state it seems) that only contain
maven-metadata.xml.md5
maven-metadata.xml.sha1
Apologies for the bad formatting, I've attached the full log
Log.txt
Caused by: java.lang.NullPointerException: Cannot get property 'status' on null object at org.codehaus.groovy.runtime.NullObject.getProperty(NullObject.java:60) at org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:190) at org.codehaus.groovy.runtime.callsite.NullCallSite.getProperty(NullCallSite.java:46)
Caused by: java.lang.NullPointerException: Cannot get property 'status' on null object
The text was updated successfully, but these errors were encountered: