mirror of
https://github.com/jlengrand/github-api.git
synced 2026-03-10 08:21:21 +00:00
fix GHPullRequest.getLabels() NPE
This commit is contained in:
committed by
Honza Brázdil
parent
dbc5b0b742
commit
ae2d01a878
@@ -97,6 +97,9 @@ public class GHIssue {
|
||||
}
|
||||
|
||||
public Collection<String> getLabels() {
|
||||
if(labels == null){
|
||||
return Collections.EMPTY_LIST;
|
||||
}
|
||||
return Collections.unmodifiableList(labels);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user