Project

General

Profile

« Previous | Next » 

Revision 3678

prevent null pointer exception when there are no nodes found (just an empty list)

View differences:

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