#vulnerable code 
                             @Test
	public void testDelete() throws JSONException, UnirestException {
		HttpResponse<JsonNode> response = Unirest.delete("http://httpbin.org/delete").asJson();
		assertEquals(200, response.getStatus());

		response = Unirest.delete("http://httpbin.org/delete").field("name", "mark").asJson();
		assertEquals("mark", response.getBody().getObject().getJSONObject("form").getString("name"));
	} 
                            #location 7 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             @Test
	public void testDelete() throws JSONException, UnirestException {
		HttpResponse<JsonNode> response = Unirest.delete(MockServer.DELETE).asJson();
		assertEquals(200, response.getStatus());

		response = Unirest.delete(MockServer.DELETE)
				.field("name", "mark")
				.field("foo","bar")
				.asJson();

		RequestCapture parse = parse(response);
		parse.assertParam("name", "mark");
		parse.assertParam("foo", "bar");
	}