I did some investigation why this issue occurred. I could reproduce the issue
with the Jira plugin and the sample changelog.xml. I found that comments with a
"(TMS-xxxx)" in them would produce the same problem as Vim saw. If no comments
had that text in them, the error did not show up. My guess is that Jira should
annotate those comments.
The exception that Vim saw was:
Caused by: java.lang.NullPointerException
at java.util.Collections$UnmodifiableCollection.<init>(Collections.java :994)
at hudson.plugins.jira.JiraSite.getProjectKeys(JiraSite.java :128)
at hudson.scm.ChangeLogSet$Entry.getMsgAnnotated (ChangeLogSet.java:117)
Which occurs in the
file. The exception is thrown because the field JiraSite.projects is null, and
in the method the JiraSite.projects field should be set up properly if it is
null. The field JiraSite.projects is only set in the JiraSite.setProjectKeys()
method, perhaps it is not called?
From my pov, I dont think the problem is caused of the Clear case plugin. The CC
comment only triggers the Jira annotation who is not set up properly, and thus
the null ref exception is thrown. But I may be wrong here, so we need some help
in investigating this.