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 =)
Could you at least provide at which location/position in the provided code the NullPointer is thrown?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.