Upgrade to 3.7.2.0 broke my app (null reference in Aspose.Cells.Font)


#1

I upgraded to version 3.7.2.0. Code that has been working on an older licensed version 3.6.2.x is now broken, because Aspose.Cells throws a null reference exception on this call:

asposeCells.InsertRows(26, 1);

Prior to this call I set the style to bold font and the font bg/fg colors to Color.White and Color.Gray.

Here is some data:

Source "Aspose.Cells"
StackTrace at Aspose.Cells.Font.set_Color(Color value)\r\n at Aspose.Cells.Font.?(Font ?)\r\n at Aspose.Cells.Style.Copy(Style style)\r\n at Aspose.Cells.Cells.?(Int32 ?, Int32 ?)\r\n at Aspose.Cells.Cells.InsertRows(Int32 rowIndex, Int32 rowNumber)\r\n

TargetSite {Void set_Color(System.Drawing.Color)} System.Reflection.MethodBase {System.Reflection.RuntimeMethodInfo}


#2

Could you post your template file and sample code here? I cannot reproduce this problem in my machine.

I will check it ASAP. Thank you.


#3

Thank you … I am trying to reproduce the problem by creating a small coding snippet. It’s possible that something went wrong in the upgrade (maybe two DLLs were on my local sandbox when only one was in source control?).