public TagInfo getTag(String shortname) {
TagInfo tags[] = getTags();
- if (tags == null || tags.length == 0) {
+ if (tags == null || tags.length == 0 || shortname == null) {
return null;
}
for (int i = 0; i < tags.length; i++) {
- if (tags[i].getTagName().equals(shortname)) {
+ if (shortname.equals(tags[i].getTagName())) {
return tags[i];
}
}
removed when the service stops which prevents the service from starting.
(markt)
</fix>
+ <fix>
+ <bug>14416</bug>: Make <code>TagLibraryInfo.getTag()</code> more robust
+ at handling <code>null</code>s. (markt)
+ </fix>
</changelog>
</subsection>
</section>