Project

General

Profile

« Previous | Next » 

Revision 6432

only create ObjectFormatId when we actually have the parameter (downstream we rely on it being null or not when constructing the query)

View differences:

src/edu/ucsb/nceas/metacat/restservice/MNResourceHandler.java
761 761
                    objectFormat + " replicaStatus: " + replicaStatus + 
762 762
                    " start: " + start + " count: " + count);
763 763
           
764
            ObjectFormatIdentifier fmtid = new ObjectFormatIdentifier();
764
            ObjectFormatIdentifier fmtid = null;
765 765
           
766 766
            if ( objectFormat != null ) {
767 767
          	 fmtid = objectFormat.getFmtid();

Also available in: Unified diff