Unable to inject com.atlassian.jira.bc.issue.search.SearchService

Rosy Salameh July 24, 2014

Hello,

I am obtaining java.lang.NullPointerException when doing the following:

SearchService.ParseResult parseResult = searchService.parseQuery(authenticationContext.getUser().getDirectoryUser(), jqlQuery);

although the jqlquery is a valid one (e.g. key='ISS-11') , can you please help?

Did I miss a dependency or a component?
Thanks,
Rosy

1 answer

0 votes
Rosy Salameh July 24, 2014

Hello,

Please disregard that. The problem came from authenticationContext.getUser().getDirectoryUser(). I am running that through a scheduler and I should set the user running it.

Thanks,

Rosy

Suggest an answer

Log in or Sign up to answer