Solved multiple NullPointer exceptions and infinity loop while indexing and running server