Project: Eclipse_Platform_UI
Bug 245761 [Presentations] Lazy IndexOutOfBoundsException in PresentationSerializer.getPart
Reported: 2008-08-30 02:16:28 | Status: verified fixed

When restoring after some failure, PresentationSerializer.getPart can get many out of range numeric ids. Throwing and ignoring an IndexOutOfBoundsException for each makes debugging very hard and is just lazy programming. Please replace the catch by if (index < parts.size()) { IPresentablePart result = (IPresentablePart) parts.get(index); return result; }

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/presentations/PresentationSerializer.java