#vulnerable code 
                             private static void clearTerminal() {
		if (System.getProperty("os.name").contains("Windows")) {
			// hack
			System.out.printf("%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n");
		} else if (System.getProperty("vjtop.altClear") != null) {
			System.out.print('\f');
		} else {
			System.out.print(CLEAR_TERMINAL_ANSI_CMD);
		}
	} 
                            #location 2 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             private static void clearTerminal() {
		if (Utils.isWindows) {
			System.out.printf("%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n%n");
		} else {
			System.out.print(CLEAR_TERMINAL_ANSI_CMD);
		}
	}