Skip to content

Commit

Permalink
[SHIBUI-1237]
Browse files Browse the repository at this point in the history
add missed clears
  • Loading branch information
jj committed Feb 25, 2019
1 parent 5c4465b commit 8856014
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ void setupUIInfo(EntityDescriptor ed, EntityDescriptorRepresentation representat
void setupContacts(EntityDescriptor ed, EntityDescriptorRepresentation representation) {
// set up contacts
if (representation.getContacts() != null && representation.getContacts().size() > 0) {
ed.getContactPersons().clear();
for (ContactRepresentation contactRepresentation : representation.getContacts()) {
ContactPerson contactPerson = ((ContactPersonBuilder) openSamlObjects.getBuilderFactory().getBuilder(ContactPerson.DEFAULT_ELEMENT_NAME)).buildObject();

Expand Down Expand Up @@ -325,7 +326,7 @@ void setupSPSSODescriptor(EntityDescriptor ed, EntityDescriptorRepresentation re
);
}


spssoDescriptor.getNameIDFormats().clear();
if (representation.getServiceProviderSsoDescriptor() != null && representation.getServiceProviderSsoDescriptor().getNameIdFormats() != null && representation.getServiceProviderSsoDescriptor().getNameIdFormats().size() > 0) {
for (String nameidFormat : representation.getServiceProviderSsoDescriptor().getNameIdFormats()) {
NameIDFormat nameIDFormat = openSamlObjects.buildDefaultInstanceOfType(NameIDFormat.class);
Expand Down

0 comments on commit 8856014

Please sign in to comment.