Project

General

Profile

« Previous | Next » 

Revision 7331

check for null archived flag in ORE SM
https://redmine.dataone.org/issues/3046

View differences:

src/edu/ucsb/nceas/metacat/admin/upgrade/dataone/GenerateORE.java
197 197
				SystemMetadata originalOreSysMeta = mn.getSystemMetadata(orePid);
198 198
				
199 199
				// only update the CURRENT revision of the ORE
200
				if (originalOreSysMeta.getObsoletedBy() != null || originalOreSysMeta.getArchived()) {
200
				if (originalOreSysMeta.getObsoletedBy() != null || (originalOreSysMeta.getArchived() != null && originalOreSysMeta.getArchived())) {
201 201
					log.debug("ORE pid is obsolete or archived, skipping: " + orePid.getValue());
202 202
					continue;
203 203
				}

Also available in: Unified diff