#vulnerable code 
                             @Override
	public SourceEntry buildEntry(File sourceDir, String path) {
		path = FilenameUtils.separatorsToUnix(path);
		String[] arr = StringUtils.split(path, "/");
		
		SourceEntry entry = null;
		int i = 0;
		for(String s: arr){
			System.out.println("[" + (i++) + "]: " + s);
			sourceDir = new File(sourceDir, s);
			entry = new SourceEntry(entry, sourceDir);
		}
		
		System.out.println(entry.getPath());
		System.out.println(entry.getName());
		System.out.println(entry.getFile().getAbsolutePath());
		System.out.println(entry.getParent().getFile().getAbsolutePath());
		return entry;
	} 
                            #location 14 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             @Override
	public SourceEntry buildEntry(File sourceDir, String path) {
		path = FilenameUtils.separatorsToUnix(path);
		String[] arr = StringUtils.split(path, "/");
		
		SourceEntry entry = null;
		for(String s: arr){
			sourceDir = new File(sourceDir, s);
			entry = new SourceEntry(entry, sourceDir);
		}
		
		return entry;
	}