Skip to content

Commit

Permalink
[JENKINS-31162] @tfennelly's comment was addresed
Browse files Browse the repository at this point in the history
  • Loading branch information
recena committed Mar 11, 2016
1 parent e140be8 commit ef5b11b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/hudson/model/ItemGroupMixIn.java
Expand Up @@ -348,7 +348,7 @@ public static Categories getCategories(Authentication a, ItemGroup c) {
int i = 0;
boolean found = false;
while (i < categories.getItems().size() && !found) {
if (categories.getItems().get(i).getId() == ic.getId()) {
if (categories.getItems().get(i).getId().equals(ic.getId())) {
Map<String, Object> metadata = new HashMap<String, Object>();
metadata.put("class", descriptor.clazz.getName());
metadata.put("iconClassName", "item-icon-" + descriptor.clazz.getName().substring(descriptor.clazz.getName().lastIndexOf(".") + 1).toLowerCase());
Expand Down

0 comments on commit ef5b11b

Please sign in to comment.