This project has moved and is read-only. For the latest updates, please go here.

null exception when opening empty excel

Mar 8, 2014 at 10:56 AM
Edited Mar 8, 2014 at 12:01 PM
Hi , I have null exception when I try to open attached file this way

var workbook = new XLWorkbook("C:\template.xlsx");


on SO

I am trying to debug this and seems that this is because of conditional formating is null

the problem was in LoadConditionalFormatting
instead of

if (conditionalFormatting == null) return;

should be
if (conditionalFormatting == null || conditionalFormatting.SequenceOfReferences == null) return;