Project

General

Profile

« Previous | Next » 

Revision 9059

Added by Jing Tao almost 10 years ago

Fixed a bug that the getLogRecords can't handle the case that the event is null.

View differences:

src/edu/ucsb/nceas/metacat/dataone/v1/CNodeService.java
446 446
			String pidFilter, Integer start, Integer count) throws InvalidToken,
447 447
			InvalidRequest, ServiceFailure, NotAuthorized, NotImplemented,
448 448
			InsufficientResources {
449
		org.dataone.service.types.v2.Log log = impl.getLogRecords(session, fromDate, toDate, event.xmlValue(), pidFilter, start, count);
449
	    String eventValue = null;
450
        if(event != null) {
451
            eventValue = event.xmlValue();
452
        }
453
		org.dataone.service.types.v2.Log log = impl.getLogRecords(session, fromDate, toDate, eventValue, pidFilter, start, count);
450 454
		Log retLog = null;
451 455
		try {
452 456
			retLog = TypeMarshaller.convertTypeFromType(log, Log.class);

Also available in: Unified diff