1
0
Fork 0

fixed NPE when only id,key fields are requested on search #140

master
Bob Carroll 2016-05-30 15:16:28 -07:00
parent e3f68bf05d
commit dc5ed2e3f1
1 changed files with 2 additions and 0 deletions

View File

@ -812,6 +812,8 @@ public class Issue extends Resource {
key = Field.getString(map.get("key"));
fields = (Map)map.get("fields");
if (fields == null)
return;
assignee = Field.getResource(User.class, fields.get(Field.ASSIGNEE), restclient);
attachments = Field.getResourceArray(Attachment.class, fields.get(Field.ATTACHMENT), restclient);