Project

General

Profile

« Previous | Next » 

Revision 5204

Added by daigle almost 15 years ago

make sure querygroup is not null before trying to print it.

View differences:

src/edu/ucsb/nceas/metacat/QuerySpecification.java
762 762

  
763 763
        // Get the query from the QueryGroup and check
764 764
        // if no query has been returned
765
        String queryFromQueryGroup = query.printSQL(useXMLIndex);
765
        String queryFromQueryGroup;
766
        if (query != null) {
767
        	queryFromQueryGroup = query.printSQL(useXMLIndex);
768
        } else {
769
        	queryFromQueryGroup = "";
770
        }
766 771
        logMetacat.info("Query from query in QuerySpec.printSQL: " 
767 772
        		+ queryFromQueryGroup);
768 773
        

Also available in: Unified diff