#vulnerable code 
                              @Test
  public void parseDomainTopologyYaml() {
    ConfigMapHelper.DomainTopology domainTopology =
        ConfigMapHelper.parseDomainTopologyYaml(DOMAIN_TOPOLOGY);

    assertNotNull(domainTopology);
    assertTrue(domainTopology.getDomainValid());

    WlsDomainConfig wlsDomainConfig = domainTopology.getDomain();
    assertNotNull(wlsDomainConfig);

    assertEquals("base_domain", wlsDomainConfig.getName());
    assertEquals("admin-server", wlsDomainConfig.getAdminServerName());

    Map<String, WlsClusterConfig> wlsClusterConfigs = wlsDomainConfig.getClusterConfigs();
    assertEquals(1, wlsClusterConfigs.size());

    WlsClusterConfig wlsClusterConfig = wlsClusterConfigs.get("cluster-1");
    assertNotNull(wlsClusterConfig);

    List<WlsServerConfig> wlsServerConfigs = wlsClusterConfig.getServers();
    assertEquals(2, wlsServerConfigs.size());

    Map<String, WlsServerConfig> serverConfigMap = wlsDomainConfig.getServerConfigs();
    assertEquals(3, serverConfigMap.size());

    assertTrue(serverConfigMap.containsKey("admin-server"));
    assertTrue(serverConfigMap.containsKey("server1"));
    assertTrue(serverConfigMap.containsKey("server2"));

    WlsServerConfig server2Config = serverConfigMap.get("server2");
    assertEquals("domain1-managed-server2", server2Config.getListenAddress());
    assertEquals(9004, server2Config.getListenPort().intValue());
    assertEquals(8004, server2Config.getSslListenPort().intValue());
    assertFalse(server2Config.isSslPortEnabled());
    List<NetworkAccessPoint> server2ConfigNAPs = server2Config.getNetworkAccessPoints();
    assertEquals(1, server2ConfigNAPs.size());

    NetworkAccessPoint server2ConfigNAP = server2ConfigNAPs.get(0);
    assertEquals("nap2", server2ConfigNAP.getName());
    assertEquals("t3", server2ConfigNAP.getProtocol());
    assertEquals(8005, server2ConfigNAP.getListenPort().intValue());
    assertEquals(8005, server2ConfigNAP.getPublicPort().intValue());
  } 
                            #location 32 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                              @Test
  public void parseDomainTopologyYaml() {
    ConfigMapHelper.DomainTopology domainTopology =
        ConfigMapHelper.parseDomainTopologyYaml(DOMAIN_TOPOLOGY);

    assertNotNull(domainTopology);
    assertTrue(domainTopology.getDomainValid());

    WlsDomainConfig wlsDomainConfig = domainTopology.getDomain();
    assertNotNull(wlsDomainConfig);

    assertEquals("base_domain", wlsDomainConfig.getName());
    assertEquals("admin-server", wlsDomainConfig.getAdminServerName());

    Map<String, WlsClusterConfig> wlsClusterConfigs = wlsDomainConfig.getClusterConfigs();
    assertEquals(1, wlsClusterConfigs.size());

    WlsClusterConfig wlsClusterConfig = wlsClusterConfigs.get("cluster-1");
    assertNotNull(wlsClusterConfig);

    List<WlsServerConfig> wlsServerConfigs = wlsClusterConfig.getServers();
    assertEquals(2, wlsServerConfigs.size());

    Map<String, WlsServerConfig> serverConfigMap = wlsDomainConfig.getServerConfigs();
    assertEquals(3, serverConfigMap.size());

    assertTrue(serverConfigMap.containsKey("admin-server"));
  }