Skip to content

Commit

Permalink
Merge pull request gitlab4j#646 from aesy/master
Browse files Browse the repository at this point in the history
Fixed ClassCastException when getting label name
  • Loading branch information
jabby authored Mar 1, 2021
2 parents e405be8 + ba5a1ef commit 750213b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/gitlab4j/api/AbstractApi.java
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public Object getLabelIdOrName(Object obj) throws GitLabApiException {
return (id);
}

String name = ((User) obj).getName();
String name = ((Label) obj).getName();
if (name != null && name.trim().length() > 0) {
return (urlEncode(name.trim()));
}
Expand Down

0 comments on commit 750213b

Please sign in to comment.