Fix npe on requiresIndexing