cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Former Member
0 Kudos

I have a node in web dynpro context, whose cardianity is 0..n and selection property is 0..1

Due to some action on the view , the node's one and only element also gets removed from it.

This throws a dump .....with the following stack trace. Can anyone help avoid this dump ?

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0

Do I need to change the properties of the node. Other properties of the node are also given below.

collectionType list

initializeLeadSelection true

singleton true

typedAccessRequired true

Accepted Solutions (0)

Answers (4)

Answers (4)

lokesh_kamana
Active Contributor
0 Kudos

Hi,

If ur using loop anywhere to dispaly values.

Try in this way.

for (int i = wdContext.createClientNode.size()- 1; i >= 0; --i)

Thanks & Regards,

Lokesh

Former Member
0 Kudos

thank u

Former Member
0 Kudos

Hi,

please post the complete error trace ?

is it rfc context ? or re imported the rfc ?

Regards,

ramesh

Former Member
0 Kudos

Try removing the lead selection by calling setLeadSelection(NO_SELECTION) on the node before removing the last element or set initializeLeadSelection = false.

Cheers, Karsten