#vulnerable code 
                             public boolean doExists(String name, Locale locale, String path) throws Exception {
		InputStream in = new URL(path).openStream();
		try {
			return in != null;
		} finally {
			in.close();
		}
	} 
                            #location 6 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             public boolean doExists(String name, Locale locale, String path) throws Exception {
		InputStream in = new URL(path).openStream();
		try {
			return in != null;
		} finally {
			if (in != null)
				in.close();
		}
	}