#vulnerable code 
                             @Test
	public void sizeRetrievedSuccessfully() {
		final int ENTRY_COUNT = Integer.SIZE - 1;
		OffHeapJudyHashMap<Integer, Person> map = 
				new OffHeapJudyHashMap<Integer, Person>(Person.class);
		
		for (int i = 0; i < ENTRY_COUNT; i++) {
			map.put(i << i, randomOffHeapPerson(i, map.newElement()));
			Assert.assertEquals(i + 1, map.size());
		}
		
		for (int i = 0; i < ENTRY_COUNT; i++) {
			map.remove(i << i);
			Assert.assertEquals(ENTRY_COUNT - (i + 1), map.size());
		}
	} 
                            #location 8 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             @Test
	public void sizeRetrievedSuccessfully() {
		final int ENTRY_COUNT = Integer.SIZE - 1;
		OffHeapJudyHashMap<Integer, Person> map = 
				new OffHeapJudyHashMap<Integer, Person>(Person.class);
		
		for (int i = 0; i < ENTRY_COUNT; i++) {
			map.put(i << i, randomizeOffHeapPerson(i, map.newElement()));
			Assert.assertEquals(i + 1, map.size());
		}
		
		for (int i = 0; i < ENTRY_COUNT; i++) {
			map.remove(i << i);
			Assert.assertEquals(ENTRY_COUNT - (i + 1), map.size());
		}
	}