[JIRA] [p4-plugin] (JENKINS-31169) NullPointerException if user doesn't exist when collecting changes

33 views
Skip to first unread message

phil.mcardle@cloudgine.com (JIRA)

unread,
Oct 26, 2015, 8:27:01 AM10/26/15
to jenkinsc...@googlegroups.com
Phil McArdle created an issue
 
Jenkins / Bug JENKINS-31169
NullPointerException if user doesn't exist when collecting changes
Issue Type: Bug Bug
Assignee: Unassigned
Components: p4-plugin
Created: 26/Oct/15 12:26 PM
Environment: Jenkins: 1.634
P4 Plugin: 1.3.2
Priority: Minor Minor
Reporter: Phil McArdle
(p4):stop:6
(p4):cmd:... p4 user -o username
p4 user -o username

(p4):stop:7
Unable to get current change: java.lang.NullPointerException
FATAL: null
java.lang.NullPointerException
	at org.jenkinsci.plugins.p4.changes.P4ChangeSet.store(P4ChangeSet.java:74)
	at org.jenkinsci.plugins.p4.PerforceScm.checkout(PerforceScm.java:346)
	at hudson.scm.SCM.checkout(SCM.java:485)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1277)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
	at hudson.model.Run.execute(Run.java:1741)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:410)
Finished: FAILURE

I've replaced the username in question with 'username'. This was a 100% repro for me until I submitted a dummy change from a user that did exist.

This is obviously a fairly niche problem, with a workaround, but I didn't see anything that matched this in existing bug reports.

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

scm_issue_link@java.net (JIRA)

unread,
Nov 9, 2015, 10:14:01 AM11/9/15
to jenkinsc...@googlegroups.com
SCM/JIRA link daemon commented on Bug JENKINS-31169
 
Re: NullPointerException if user doesn't exist when collecting changes

Code changed in jenkins
User: Paul Allen
Path:
src/main/java/org/jenkinsci/plugins/p4/changes/P4ChangeEntry.java
http://jenkins-ci.org/commit/p4-plugin/3e61fbc19fcdbb962edfac00f14cd466105e9c98
Log:
If author is not set use unknown.

JENKINS-31169

scm_issue_link@java.net (JIRA)

unread,
Nov 11, 2015, 9:59:01 AM11/11/15
to jenkinsc...@googlegroups.com

Code changed in jenkins
User: Paul Allen
Path:
src/main/java/org/jenkinsci/plugins/p4/changes/P4ChangeEntry.java

src/main/java/org/jenkinsci/plugins/p4/client/ConnectionHelper.java
http://jenkins-ci.org/commit/p4-plugin/615a2d2251a67bec7d328ce742866772959104d5
Log:
Use empty email "" for deleted users.

JENKINS-31169

pallen@perforce.com (JIRA)

unread,
Nov 19, 2015, 6:08:03 AM11/19/15
to jenkinsc...@googlegroups.com
Paul Allen closed an issue as Fixed
 

Fixed in 1.3.3

Change By: Paul Allen
Status: Open Closed
Resolution: Fixed
Reply all
Reply to author
Forward
0 new messages