anchor.diff:          boolean hasLocalLoginOptions = false;
           List<String> localAuthenticatorNames = new ArrayList<String>();
   
  -        if (idpAuthenticatorMapping.get(Constants.RESIDENT_IDP_RESERVED_NAME) != null) {
  +        if (idpAuthenticatorMapping != null && idpAuthenticatorMapping.get(Constants.RESIDENT_IDP_RESERVED_NAME) != null) {
               String authList = idpAuthenticatorMapping.get(Constants.RESIDENT_IDP_RESERVED_NAME);
               if (authList != null) {
                   localAuthenticatorNames = Arrays.asList(authList.split(","));
  
positive.code:                                             }
                                          }
  
                                      }%>
  
                              </div>
  
negative.code:                                 }
                              %>
  
                              <%if (idpAuthenticatorMapping != null &&
                                      idpAuthenticatorMapping.get(Constants.RESIDENT_IDP_RESERVED_NAME) != null) { %>
  
                              <%} %>
                              <%
                                  if ((hasLocalLoginOptions && localAuthenticatorNames.size() > 1) || (!hasLocalLoginOptions)
                                          || (hasLocalLoginOptions && idpAuthenticatorMapping != null && idpAuthenticatorMapping.size() > 1)) {
                              %>
                              <div class="form-group">
                                  <% if (hasLocalLoginOptions) { %>
  