Revision 7136
Added by ben leinfelder over 12 years ago
src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java | ||
---|---|---|
1447 | 1447 |
*/ |
1448 | 1448 |
protected List<Node> listNodesBySubject(Subject subject) |
1449 | 1449 |
throws ServiceFailure, NotImplemented { |
1450 |
List<Node> nodeList = null;
|
|
1450 |
List<Node> nodeList = new ArrayList<Node>();
|
|
1451 | 1451 |
|
1452 | 1452 |
CNode cn = D1Client.getCN(); |
1453 | 1453 |
List<Node> nodes = cn.listNodes().getNodeList(); |
Also available in: Unified diff
needed to initialize the nodeList that stores matching nodes (by subject) -- this was the source of a NPE when we had a matching node subject.