[JIRA] (JENKINS-60884) NPE in hudson.model.Run.getPreviousBuildsOverThreshold

13 views
Skip to first unread message

stuartr@ea.com (JIRA)

unread,
Jan 27, 2020, 4:23:03 PM1/27/20
to jenkinsc...@googlegroups.com
Stuart Rowe created an issue
 
Jenkins / Bug JENKINS-60884
NPE in hudson.model.Run.getPreviousBuildsOverThreshold
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2020-01-27 21:22
Environment: Jenkins ver. 2.204.1
Priority: Critical Critical
Reporter: Stuart Rowe

Calling Run#getPreviousBuildsOverThreshold(int, Result) on a run instance of a job with no previous runs will cause a NPE. The implementation of Run#getPreviousBuildsOverThreshold(int, Result) is missing a null check on the value returned by Run#getPreviousBuild.

java.lang.NullPointerException
  	at hudson.model.Run.getPreviousBuildsOverThreshold(Run.java:957)
  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  	at java.lang.reflect.Method.invoke(Method.java:498)
  	at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
  	at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
  	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1213)
  	at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1022)
  	at org.codehaus.groovy.runtime.callsite.PojoMetaClassSite.call(PojoMetaClassSite.java:47)
  	at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)
  	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)
  	at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)

 

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

timjacomb1@gmail.com (JIRA)

unread,
Feb 3, 2020, 2:27:03 PM2/3/20
to jenkinsc...@googlegroups.com

timjacomb1@gmail.com (JIRA)

unread,
Feb 3, 2020, 2:27:04 PM2/3/20
to jenkinsc...@googlegroups.com
Tim Jacomb started work on Bug JENKINS-60884
 
Change By: Tim Jacomb
Status: Open In Progress

timjacomb1@gmail.com (JIRA)

unread,
Feb 3, 2020, 2:27:04 PM2/3/20
to jenkinsc...@googlegroups.com

timjacomb1@gmail.com (JIRA)

unread,
Feb 3, 2020, 2:27:04 PM2/3/20
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 5, 2020, 7:13:04 AM2/5/20
to jenkinsc...@googlegroups.com
Oleg Nenashev updated Bug JENKINS-60884
 

It will be released in 2.220. I will add a LTS candidate label

Change By: Oleg Nenashev
Status: In Review Fixed but Unreleased
Resolution: Fixed
Released As: Jenkins 2.220

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 5, 2020, 7:13:08 AM2/5/20
to jenkinsc...@googlegroups.com

o.v.nenashev@gmail.com (JIRA)

unread,
Feb 10, 2020, 4:29:03 AM2/10/20
to jenkinsc...@googlegroups.com

dbeck@cloudbees.com (JIRA)

unread,
Feb 27, 2020, 5:18:02 PM2/27/20
to jenkinsc...@googlegroups.com
Daniel Beck updated an issue
Change By: Daniel Beck
Labels: lts-candidate
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages