Object reference not set to an instance of an object. returning single object code example
Example 1: object reference not set to an instance of an object in c#
You need to initialize the list first:
protected List list = new List();
Example 2: object reference not set to an instance of an object vb
Board1.Init()