Aspose Cells 24.12 fails to remove hyperlinks

Hi all,

I was using Aspose Cells 22.1 and everything was good and well until I upgraded to Aspose 23.12 (I have also tested with 24.3)
I have several samples where Aspose Cells fails to remove hyperlinks,
The error msg is Object reference not set to an instance of an object.
The Hyperlink object is not null, but yet, it outputs that error. This lead me to believe that Hyperlink’s parents object might have been disposed incorrectly.

var workbook = new Workbook(inputStream, opt);

foreach(var worksheet in workbook.Worksheets)
                {
                    try
                    {
                        for(int i = worksheet.Hyperlinks.Count - 1; i >= 0; i--)
                        {
                            var currentHyperlink = worksheet.Hyperlinks[i];
                            currentHyperlink.Delete(); // error here
                        }
					}
					catch(Exception ex)
                    {
                     
                    }
				}

0d878d27c2f345de9f0644e2f9056757.zip (44.4 KB)

@dunghnguyen
By using sample files and code for testing on the latest version v24.3, we were able to reproduce the issue. Found that An exception occurred when deleting a hyperlink.

We have opened the following new ticket(s) in our internal issue tracking system and will deliver their fixes according to the terms mentioned in Free Support Policies.

Issue ID(s): CELLSNET-55299

You can obtain Paid Support Services if you need support on a priority basis, along with the direct access to our Paid Support management team.

@dunghnguyen,

This is to inform you that the issue you reported earlier as “CELLSNET-55299” has been resolved. The fix will be included in the upcoming release (Aspose.Cells v24.4) that we plan to release in the first half of April (next month). You will be notified when the next version is released.

1 Like

The issues you have found earlier (filed as CELLSNET-55299) have been fixed in this update. This message was posted using Bugs notification tool by johnson.shi