fix GHPullRequest.getLabels() NPE

This commit is contained in:
Honza Brázdil
2012-08-10 16:29:08 +02:00
committed by Honza Brázdil
parent dbc5b0b742
commit ae2d01a878

View File

@@ -97,6 +97,9 @@ public class GHIssue {
}
public Collection<String> getLabels() {
if(labels == null){
return Collections.EMPTY_LIST;
}
return Collections.unmodifiableList(labels);
}