Revision 6837
Added by Chris Jones almost 13 years ago
src/edu/ucsb/nceas/metacat/IdentifierManager.java | ||
---|---|---|
1529 | 1529 |
|
1530 | 1530 |
oi.setSize(size); |
1531 | 1531 |
|
1532 |
ol.addObjectInfo(oi); |
|
1532 |
// when requested count == 0, return an empty object list |
|
1533 |
if (count != 0) { |
|
1534 |
ol.addObjectInfo(oi); |
|
1535 |
} |
|
1533 | 1536 |
countIndex++; |
1534 | 1537 |
} |
1535 | 1538 |
|
Also available in: Unified diff
When the requested count in a call to listObjects() is 0, return an empty object list, not a full one. Fixes https://redmine.dataone.org/issues/2122