Crash caused by libxl::Format::borderRightColor()

Encountered an access violation when calling borderRightColor() on a format object (not occurring on border Top/Left).
Found that it occured when the bordertype is none.
A work around was to check if the type is none first before getting borderColor.
Not sure if the state of my solution contributed to the crash or whether the function has a bug.

The address looks like a data structure accessed via a NULL pointer.

I think @dmytro can fix this by adding a NULL check for the next version.

Glad you found a workaround.

1 Like