#vulnerable code 
                             @Test
	public void testIndexesAreSuccessfullyAsserted() {

		createLoginConstraint();

		Components.getConfiguration().setAutoIndex("assert");

		AutoIndexManager indexManager = new AutoIndexManager(metaData, Components.driver());
		assertEquals(AutoIndexMode.ASSERT.getName(), Components.getConfiguration().getAutoIndex());
		assertEquals(1, indexManager.getIndexes().size());
		indexManager.build();

		dropLoginConstraint();
	} 
                            #location 10 
                            #vulnerability type NULL_DEREFERENCE
#fixed code
                             @Test
	public void testIndexesAreSuccessfullyAsserted() {

		createLoginConstraint();

		baseConfiguration.setAutoIndex("assert");

		AutoIndexManager indexManager = new AutoIndexManager(metaData, Components.driver(), baseConfiguration);
		assertEquals(AutoIndexMode.ASSERT.getName(), baseConfiguration.getAutoIndex());
		assertEquals(1, indexManager.getIndexes().size());
		indexManager.build();

		dropLoginConstraint();
	}