private synchronized void initializeStateIfNecessary()
{
if (pipelineContext == null) {
TaskContext taskContext = taskContextReference.get();
checkState(taskContext != null, "Task context must be set before index can be built");
<BUG>pipelineContext = taskContext.addPipelineContext(false, false);
}</BUG>
if (indexSnapshotLoader == null) {
indexSnapshotLoader = new IndexSnapshotLoader(
indexBuildDriverFactoryProvider,

private synchronized void initializeStateIfNecessary()
{
if (pipelineContext == null) {
TaskContext taskContext = taskContextReference.get();
checkState(taskContext != null, "Task context must be set before index can be built");
pipelineContext = taskContext.addPipelineContext(indexBuildDriverFactoryProvider.getPipelineId(), false, false);
}
if (indexSnapshotLoader == null) {
indexSnapshotLoader = new IndexSnapshotLoader(
indexBuildDriverFactoryProvider,
