Why do I get a NullPointerException when I try to create a worklog.

I'm writing a plugin that uses an excel file to create a worklog.

however right now I don't even get my plugin to write any data, even if I add static input parameters.

this is hoe I try to create the worklog:

public void writeWorklog(ExcelRowTo ex) throws ParseException{
		Issue issue = manager.getIssueObject(ex.getClarityTaskId());	
		WorklogInputParameters params = WorklogInputParametersImpl.timeSpent(ex.getSpentHours().toString()).startDate(stringToDate(ex.getOccurredDate())).issue(issue).build();
		WorklogResult result = ws.validateCreate(jsc, params);
		ws.createAndRetainRemainingEstimate(jsc, result, true);

	}

and for some Reason I get a NullPointer.
I would expect a validation-whatever-error or something like that and really can't explain the nullpointer.

Any ideas?
help greatly appreciated.

Good day =)

1 answer

This widget could not be displayed.

Could you at least provide at which location/position in the provided code the NullPointer is thrown?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in Teamwork

What teamwork quotes inspire you?

Hey everyone! My name is Natalie and I'm an editor of the Atlassian Blog and I've got a question for you: What's your favorite quote about teamwork?  We've compiled a list here, along with...

143 views 16 7
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you