Project

General

Profile

« Previous | Next » 

Revision 9057

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/MNodeService.java
440 440
	public Log getLogRecords(Session session, Date fromDate, Date toDate, Event event,
441 441
			String pidFilter, Integer start, Integer count) throws InvalidRequest, InvalidToken,
442 442
			NotAuthorized, NotImplemented, ServiceFailure {
443
		org.dataone.service.types.v2.Log log = impl.getLogRecords(session, fromDate, toDate, event.xmlValue(), pidFilter, start, count);
443
	    String eventValue = null;
444
	    if(event != null) {
445
	        eventValue = event.xmlValue();
446
	    }
447
		org.dataone.service.types.v2.Log log = impl.getLogRecords(session, fromDate, toDate, eventValue, pidFilter, start, count);
444 448
		Log retLog = null;
445 449
		try {
446 450
			retLog = TypeMarshaller.convertTypeFromType(log, Log.class);

Also available in: Unified diff