#vulnerable code 
                             public static void main(String[] args) {
		// TODO Auto-generated method stub
		
//		List<Class> testCases = new ArrayList<Class>();
//		testCases.add(HomePageTest1.class);
//		testCases.add(HomePageTest2.class);
//		testCases.add(HomePageTest3.class);
//		testCases.add(HomePageTest4.class);
//		testCases.add(HomePageTest5.class);
		
			  List textFiles = new ArrayList();	
			  File dir = new File(System.getProperty("user.dir") + "/src/test/java/com/test/site");
			  for (File file : dir.listFiles()) {
			    if (file.getName().contains(("Test"))) {
			      textFiles.add(file.getClass().getClassLoader());
			    }
			  }
			  
			 
			} 
                            #location 13 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             public static void main(String[] args) throws IOException {
		String logo = "http://sauceio.com/wp-content/uploads/2014/04/appium_logo_final.png";
		StringBuilder sb = new StringBuilder();

		String a = "testcasepassed";
		sb.append("<html>");
		sb.append("<head>");
		sb.append("<title>Automation Results");
		sb.append("</title>");
		sb.append("</head>");
		sb.append("<body BGCOLOR='white'> <center><img src=" + logo + " ALIGN='center'></center>");
		sb.append("</body>");
		sb.append("<div style=float:left>");
		sb.append("<table BORDER='1' ALIGN='center' width='320'>");
		sb.append("<tr><th>TestClassName</th></tr>");
        
        	sb.append("<tr><TH><a href=#><center><font color='green'>" + a + "</font></center></a></TH>");
    		sb.append("</tr>");
    		sb.append("</table>");
    		sb.append("</div>");

    		sb.append("<div style=float:left>");
    		sb.append("<table BORDER='1' ALIGN='center' width='320'>");
    		sb.append("<tr><th>TestClassMethod</th></tr>");

    		sb.append("<tr><TH><a href=#><center><font color='red'>" + a + "</font></center></a></TH>");
        
		

		sb.append("</tr>");
		sb.append("</table>");
		sb.append("</div>");
		sb.append("</html>");
		System.out.println(sb.toString());
		FileWriter fstream = new FileWriter("MyHtml.html");
		BufferedWriter out = new BufferedWriter(fstream);
		out.write(sb.toString());
		out.close();
	}