#vulnerable code 
                             private static void generateIndex(String path) {
		System.out.println();
		System.out.println();
		System.out.println("*************** " + path);
		System.out.println();
		System.out.println();

		List<Map<String, ?>> examples = U.list();

		IntWrap nn = new IntWrap();

		List<String> eglist = IO.loadLines("examples.txt");
		List<String> processed = processAll(examples, nn, eglist);

		System.out.println("Processed: " + processed);

		Map<String, ?> model = U.map("examples", examples);
		String html = Templates.fromFile("docs.html").render(model);
		IO.save(path + "index.html", html);
	} 
                            #location 13 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             private static void generateIndex(String path) {
		System.out.println();
		System.out.println();
		System.out.println("*************** " + path);
		System.out.println();
		System.out.println();

		List<Map<String, ?>> examplesl = U.list();
		IntWrap nl = new IntWrap();
		List<String> eglistl = IO.loadLines("examplesl.txt");
		processAll(examplesl, nl, eglistl);

		List<Map<String, ?>> examplesh = U.list();
		IntWrap nh = new IntWrap();
		List<String> eglisth = IO.loadLines("examplesh.txt");
		processAll(examplesh, nh, eglisth);

		Map<String, ?> model = U.map("examplesh", examplesh, "examplesl", examplesl, "version", UTILS.version()
				.replace("-SNAPSHOT", ""));
		String html = Templates.fromFile("docs.html").render(model);
		IO.save(path + "index.html", html);
	}