[#409] Fixed one problem with delta component checking.

This commit is contained in:
iadgovuser29 2021-10-26 15:53:05 -04:00
parent 3f9c6c9d44
commit 647c88d16b

View File

@ -659,14 +659,17 @@ public final class SupplyChainCredentialValidator implements CredentialValidator
// error
resultMessage.append("ADDED attempted with prior instance\n");
deltaSb.append(String.format("%s;", ci.hashCode()));
break;
}
if (ciV2.isModified()) {
// since the base list doesn't have this ci
// just add the delta
baseCompList.add(deltaCi);
break;
}
if (ciV2.isRemoved()) {
baseCompList.remove(ciV2);
break;
}
// if it is a remove
// we do nothing because baseCompList doesn't have it