#vulnerable code 
                             @Test
	public void objectRetrievedSuccessfullyFromExtendableObjectOffHeapPoolWithDefaultObjectOffHeapPool() {
		ExtendableObjectOffHeapPool<SampleOffHeapClass> extendableObjectPool =
				offHeapService.createOffHeapPool(
						new DefaultExtendableObjectOffHeapPoolCreateParameterBuilder<SampleOffHeapClass>().
								elementType(SampleOffHeapClass.class).
							build());
		
		List<SampleOffHeapClass> objList = new ArrayList<SampleOffHeapClass>();
		
    	for (int i = 0; i < TOTAL_ELEMENT_COUNT; i++) {
    		SampleOffHeapClass obj = extendableObjectPool.get();
    		obj.setOrder(i);
    		objList.add(obj);
    	}
    	
    	for (int i = 0; i < TOTAL_ELEMENT_COUNT; i++) {
    		SampleOffHeapClass obj = objList.get(i);
    		Assert.assertEquals(i, obj.getOrder());
    	}
	} 
                            #location 13 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             @Test
	public void objectRetrievedSuccessfullyFromExtendableObjectOffHeapPoolWithDefaultObjectOffHeapPool() {
		ExtendableObjectOffHeapPool<SampleOffHeapClass> extendableObjectPool =
				offHeapService.createOffHeapPool(
						new DefaultExtendableObjectOffHeapPoolCreateParameterBuilder<SampleOffHeapClass>().
								elementType(SampleOffHeapClass.class).
							build());
		
		List<SampleOffHeapClass> objList = new ArrayList<SampleOffHeapClass>();
		
    	for (int i = 0; i < TOTAL_ELEMENT_COUNT; i++) {
    		SampleOffHeapClass obj = extendableObjectPool.get();
    		Assert.assertEquals(0, obj.getOrder());
    		obj.setOrder(i);
    		Assert.assertEquals(i, obj.getOrder());
    		objList.add(obj);
    	}
    	
    	for (int i = 0; i < TOTAL_ELEMENT_COUNT; i++) {
    		SampleOffHeapClass obj = objList.get(i);
    		Assert.assertEquals(i, obj.getOrder());
    	}
	}