Revision 3678
Added by ben leinfelder almost 17 years ago
src/edu/ucsb/nceas/metacat/clientview/ClientViewHelper.java | ||
---|---|---|
905 | 905 |
|
906 | 906 |
public static String[] getNodeTextList(XPath xPath, String expression, Node root) { |
907 | 907 |
NodeList nodes; |
908 |
String result[] = null;
|
|
908 |
String result[] = new String[0];
|
|
909 | 909 |
int size; |
910 | 910 |
|
911 | 911 |
try { |
Also available in: Unified diff
prevent null pointer exception when there are no nodes found (just an empty list)