#vulnerable code 
                             public static byte[] getUrlByteArray(String urlPath) {
		return toByteArray(getUrlPictureStream(urlPath));
	} 
                            #location 2 
                            #vulnerability type RESOURCE_LEAK
#fixed code
                             public static byte[] getUrlByteArray(String urlPath) {
		try {
            return toByteArray(getUrlPictureStream(urlPath));
        } catch (IOException e) {
            logger.error("getUrlPictureStream error,{},{}", urlPath, e);
        }
		return null;
	}