We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Cells.find() throws java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 5 out of bounds for char[4]

Cells.find() throws java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 5 out of bounds for char[4] . We are passing the object and options accurate . This happens for excel files

Cells.find(Object what, Cell previousCell, FindOptions findOptions)
Log:
java.lang.ArrayIndexOutOfBoundsException: arraycopy: last source index 5 out of bounds for char[4]
at java.base/java.lang.System.arraycopy(Native Method)
at com.aspose.cells.zaaq.b(Unknown Source)
at com.aspose.cells.zaaq.a(Unknown Source)
at com.aspose.cells.Cell.a(Unknown Source)
at com.aspose.cells.Cell.a(Unknown Source)
at com.aspose.cells.zhs.b(Unknown Source)
at com.aspose.cells.zhs.a(Unknown Source)
at com.aspose.cells.Cells.a(Unknown Source)
at com.aspose.cells.Cells.a(Unknown Source)
at com.aspose.cells.Cells.a(Unknown Source)
at com.aspose.cells.Cells.find(Unknown Source)

@lalaasray,
Thank you for your query.

Please share your sample file and runnable console application with us for our testing. We will reproduce the problem and provide our feedback after analysis.