anchor.diff:  </tr>
   
   <!-- EnableAudienceRestriction -->
  -<% if (isEditSP && provider.getRequestedAudiences().length > 0 && provider.getRequestedAudiences()[0] != null) {
  +<% if (isEditSP && provider.getRequestedAudiences() != null && provider.getRequestedAudiences().length > 0 &&
  +                                                    provider.getRequestedAudiences()[0] != null) {
   %>
   <tr>
       <td colspan="2"><input type="checkbox"
  
positive.code:                 if (issuer.equals(sp.getIssuer())) {
                      isEditSP = true;
                      provider = sp;
                      claimTableStyle = provider.getRequestedClaims().length > 0 ? "" : "display:none";
                      audienceTableStyle = provider.getRequestedAudiences().length > 0 ? "" : "display:none";
                      recipientTableStyle = provider.getRequestedRecipients().length > 0 ? "" : "display:none";
                      if(provider.getAttributeConsumingServiceIndex() != null){
                          attributeConsumingServiceIndex = provider.getAttributeConsumingServiceIndex();
                      }
  
negative.code: </tr>
  
  <!-- EnableRecipientValidation -->
  <% if (isEditSP && provider.getRequestedRecipients() != null && provider.getRequestedRecipients().length > 0 &&
                                                       provider.getRequestedRecipients()[0] != null) {
  %>
  <tr>
      <td colspan="2"><input type="checkbox"
  