I'm using two web panels in the Issue Screen, they are totally different.
They have to load depending of the project, so i use JiraHelper.getProject()
In the first panel, it works fine, jiraHelper contains the project.
But in the other, jiraHelper project is null, I saw it with Debug options.
This is making only one of my panels load, but i need both.
You can try to make a try / catch block around your code.
try {
projectId = jiraHelper.getProject().getId();
…
} catch (Exception e) {
log.error(e);
}
It's working for me. I get a nullpointerexception AND the projectId.
But I didn't understand why!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.