#fixed code
                             @Test
	public void testIndexesAreSuccessfullyValidated() {

		createLoginConstraint();

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

		dropLoginConstraint();
	}
#vulnerable code 
                             @Test
	public void testIndexesAreSuccessfullyValidated() {

		createLoginConstraint();

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

		dropLoginConstraint();
	} 
                            #location 9 
                            #vulnerability type NULL_DEREFERENCE