How to solve Object reference not set to an instance of an object.? [duplicate] March 23, 2023 by Tarik You need to initialize the list first: protected List<string> list = new List<string>();