Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 903

[Solved] Rare exception when compiling code.

$
0
0
Whenever i try to make this:
Code:
List<IMyTerminalBlock> ListName = new List<IMyTerminalBlock>();
GridTerminalSystem.GetBlockGroupWithName("Group of blocks to get").GetBlocks(ListName);
That gets all the items in a certain group and puts them into a list. I get an execution exception that displays the following: Object reference not set to an instance of an object.

I know this error is common in C# when you put:
Code:
List<var> ListName;
instead of
Code:
List<var>...
[Solved] Rare exception when compiling code.

Viewing all articles
Browse latest Browse all 903

Trending Articles