Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
佳 邓
Gitlab4j Api
Commits
750213b9
Unverified
Commit
750213b9
authored
Mar 01, 2021
by
Gautier de Saint Martin Lacaze
Committed by
GitHub
Mar 01, 2021
Browse files
Merge pull request #646 from aesy/master
Fixed ClassCastException when getting label name
parents
e405be8b
ba5a1ef7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/org/gitlab4j/api/AbstractApi.java
View file @
750213b9
...
@@ -155,7 +155,7 @@ public abstract class AbstractApi implements Constants {
...
@@ -155,7 +155,7 @@ public abstract class AbstractApi implements Constants {
return
(
id
);
return
(
id
);
}
}
String
name
=
((
User
)
obj
).
getName
();
String
name
=
((
Label
)
obj
).
getName
();
if
(
name
!=
null
&&
name
.
trim
().
length
()
>
0
)
{
if
(
name
!=
null
&&
name
.
trim
().
length
()
>
0
)
{
return
(
urlEncode
(
name
.
trim
()));
return
(
urlEncode
(
name
.
trim
()));
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment