Project

General

Profile

« Previous | Next » 

Revision 9048

Added by Jing Tao over 9 years ago

Fixed a bug in comparing two identifiers in the update method.

View differences:

src/edu/ucsb/nceas/metacat/dataone/MNodeService.java
395 395
                Identifier previousSid = existingSysMeta.getSeriesId();
396 396
                if(previousSid != null) {
397 397
                    // there is a previous sid, if the new sid doesn't match it, the new sid should be non-existing.
398
                    if(!sidInSys.getValue().equals(previousSid)) {
398
                    if(!sidInSys.getValue().equals(previousSid.getValue())) {
399 399
                        try {
400 400
                            idExists = IdentifierManager.getInstance().identifierExists(sidInSys.getValue());
401 401
                        } catch (SQLException e) {

Also available in: Unified diff