#vulnerable code 
                             @JsonIgnore
	@Override
	public String getImageId() {
		/*Image image = getImage();
		return (image != null) ? image.getId() : null;*/
		if(image instanceof Map) {
			Map<String, String> map = (Map<String, String>) image;
			return map.get("id");
		}
		return getImage().getId();
	} 
                            #location 10 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             @JsonIgnore
	@Override
	public String getImageId() {
		/*Image image = getImage();
		return (image != null) ? image.getId() : null;*/
		if(image instanceof Map) {
			Map<String, String> map = (Map<String, String>) image;
			return map.get("id");
		}
		return null;
	}