Sometimes, in the first screen of my app, appears the following error.

java.lang.ArrayIndexOutOfBoundsException: 5 >= 5
at java.util.Vector.elementAt(Vector.java:427)
at com.sun.lwuit.Container.getComponentAt(Container.java:844)
at com.sun.lwuit.layouts.BoxLayout.getPreferredSize(BoxLayout.java:133)
at com.sun.lwuit.Container.calcPreferredSize(Container.java:1097)
at com.sun.lwuit.Component.preferredSize(Component.java:1431)
at com.sun.lwuit.Component.getPreferredSize(Component.java:473)
at com.sun.lwuit.Component.getPreferredH(Component.java:553)
at com.sun.lwuit.layouts.BoxLayout.layoutContainer(BoxLayout.java:84)
at com.sun.lwuit.Container.doLayout(Container.java:813)
at com.sun.lwuit.Container.layoutContainer(Container.java:805)
at com.sun.lwuit.Container.doLayout(Container.java:818)
at com.sun.lwuit.Form.sizeChangedInternal(+93)
at com.sun.lwuit.Display.handleEvent(Display.java:1654)
at com.sun.lwuit.Display.edtLoopImpl(Display.java:886)
at com.sun.lwuit.Display.mainEDTLoop(Display.java:831)
at com.sun.lwuit.RunnableWrapper.run(RunnableWrapper.java:119)

It has no effect on the rest of the app, but when this happens, it appears a Dialog with the error inside, and I don't want it to show.
It happens in 3 apps that I've build with Nokia SDK 2.0

How can I avoid this?