There is an unsaved comment in progress. You will lose your changes if you continue. Are you sure you want to reopen the work item?
NullReferenceException accessing the Style Property
Even if we do:
a NullReferenceException is thrown if we try to access a Style property of a Cell which do not yet has value.
Thus we have to first set Values, and then style them. But I wanted to extract the styling part to a different method and pass the WorkSheet to that method, which would style the cells before I put any data.
Also this error prevents from setting a border of an empty cell, which is relatively common scenario.