This has nothing to do with your section. I'm not sure where you got the idea that the section being empty is generating this error, but that is categorically not what's happening. Object reference not set to an instance of an object is a runtime error generated when you attempt to reference a property off of a variable that evaluates to null. There's some piece of code somewhere that is referencing a property off a variable (again, not talking about sections here) when that variable itself resolves to null at runtime.
For example, lets say you do something like:
Foo foo = db.Foos.Find(id);
The variable foo is defined as a Foo, so you can reference any property off of it that Foo has. If your Foo class had a property named Bar. Then you might then try to get the value of this property somewhere in your code via:
foo.Bar
That will compile just fine. However, if no Foo with the id is found, then the actual value of foo is null, and null does not have a property named Bar, which can only be determined at runtime. That is what the error is telling you is happening: somewhere in your code, you're calling a property of some variable without checking for a null value of the variable first. In the example above, you would typically do something like:
Foo foo = db.Foos.Find(id);
if (foo != null)
{
bar = foo.Bar;
}
You can also employ a ternary to provide some sort of fallback:
bar = foo != null ? foo.Bar : "Baz";
That way, bar will either hold the value of foo.Bar or if foo is null, the string "Baz".