#fixed code
                             @Test
	public void testParseResult() {
		List<ItemCollection> result=null;
		String testString = "{\n" + 
				"  \"responseHeader\":{\n" + 
				"    \"status\":0,\n" + 
				"    \"QTime\":4,\n" + 
				"    \"params\":{\n" + 
				"      \"q\":\"*:*\",\n" + 
				"      \"_\":\"1567286252995\"}},\n" + 
				"  \"response\":{\"numFound\":2,\"start\":0,\"docs\":[\n" + 
				"      {\n" + 
				"        \"type\":[\"model\"],\n" + 
				"        \"id\":\"3a182d18-33d9-4951-8970-d9eaf9d337ff\",\n" + 
				"        \"_modified\":[20190831211617],\n" + 
				"        \"_created\":[20190831211617],\n" + 
				"        \"_version_\":1643418672068296704},\n" + 
				"      {\n" + 
				"        \"type\":[\"adminp\"],\n" + 
				"        \"id\":\"60825929-4d7d-4346-9333-afd7dbfca457\",\n" + 
				"        \"_modified\":[20190831211618],\n" + 
				"        \"_created\":[20190831211618],\n" + 
				"        \"_version_\":1643418672172105728}]\n" + 
				"  }}";
		
		
		
		result=solrSearchService.parseQueryResult(testString);
		Assert.assertEquals(2,result.size());
		
		ItemCollection document=null;

		document=result.get(0);
		Assert.assertEquals("model", document.getItemValueString("type"));
		Assert.assertEquals("3a182d18-33d9-4951-8970-d9eaf9d337ff", document.getItemValueString("id"));
		Assert.assertEquals(1567278977000l, document.getItemValueDate("_modified").getTime());
		Assert.assertEquals(1567278977000l, document.getItemValueDate("_created").getTime());
		
		document=result.get(1);
		Assert.assertEquals("adminp", document.getItemValueString("type"));
		Assert.assertEquals("60825929-4d7d-4346-9333-afd7dbfca457",document.getItemValueString("id"));
		Assert.assertEquals(1567278978000l, document.getItemValueDate("_created").getTime());
		
	}
#vulnerable code 
                             @Test
	public void testParseResult() {
		List<ItemCollection> result=null;
		String testString = "{\n" + 
				"  \"responseHeader\":{\n" + 
				"    \"status\":0,\n" + 
				"    \"QTime\":4,\n" + 
				"    \"params\":{\n" + 
				"      \"q\":\"*:*\",\n" + 
				"      \"_\":\"1567286252995\"}},\n" + 
				"  \"response\":{\"numFound\":2,\"start\":0,\"docs\":[\n" + 
				"      {\n" + 
				"        \"type\":[\"model\"],\n" + 
				"        \"id\":\"3a182d18-33d9-4951-8970-d9eaf9d337ff\",\n" + 
				"        \"_modified\":[20190831211617],\n" + 
				"        \"_created\":[20190831211617],\n" + 
				"        \"_version_\":1643418672068296704},\n" + 
				"      {\n" + 
				"        \"type\":[\"adminp\"],\n" + 
				"        \"id\":\"60825929-4d7d-4346-9333-afd7dbfca457\",\n" + 
				"        \"_modified\":[20190831211618],\n" + 
				"        \"_created\":[20190831211618],\n" + 
				"        \"_version_\":1643418672172105728}]\n" + 
				"  }}";
		
		
		
		result=solrSearchService.parseQueryResult(testString);
		Assert.assertEquals(2,result.size());
		
		ItemCollection document=null;

		document=result.get(0);
		Assert.assertEquals("model", document.getItemValueString("type"));
		Assert.assertEquals("3a182d18-33d9-4951-8970-d9eaf9d337ff", document.getUniqueID());
		Assert.assertEquals(1567278977000l, document.getItemValueDate("$modified").getTime());
		Assert.assertEquals(1567278977000l, document.getItemValueDate("$created").getTime());
		
		document=result.get(1);
		Assert.assertEquals("adminp", document.getItemValueString("type"));
		Assert.assertEquals("60825929-4d7d-4346-9333-afd7dbfca457", document.getUniqueID());
		Assert.assertEquals(1567278978000l, document.getItemValueDate("$created").getTime());
		
	} 
                            #location 37 
                            #vulnerability type NULL_DEREFERENCE