Not able to extract excel attachment name

Hi Team,

I am using Aspose word 19.6 Java.
I am trying to extract attachment name from the Icon caption using following code:

 Document doc = new Document(docxFile.getAbsolutePath());	// docxFile is the docx File object.
  NodeCollection<Shape> shapes = (NodeCollection<Shape>) doc.getChildNodes(NodeType.SHAPE, true);
  OleFormat tempOleFormatRef = null;

  for (Shape shape : shapes)
 {
	tempOleFormatRef = shape.getOleFormat();
	if ( tempOleFormatRef != null){
                  String fileName = tempOleFormatRef.getIconCaption();// Getting exception here!!!
     }
}

At the mentioned exception line getting follwoing exception:
java.lang.IndexOutOfBoundsException: Index: 3, Size: 1

Please provide your into on it and also please suggest if there is any other better way to get attachment name via icon caption or any other means.

Sample docx attached below:

test.zip (221.5 KB)

Thanks

@yogeshkhandar,

We tested the scenario and have managed to reproduce the same problem on our end. For the sake of correction, we have logged this problem in our issue tracking system. The ID of this issue is WORDSNET-19106. We will further look into the details of this problem and will keep you updated on the status of correction. We apologize for your inconvenience.

The issues you have found earlier (filed as WORDSNET-19106) have been fixed in this Aspose.Words for .NET 19.10 update and this Aspose.Words for Java 19.10 update.