--- vcl/unx/gtk/a11y/atkutil.cxx.old	2006-09-27 15:55:09.018388000 +0200
+++ vcl/unx/gtk/a11y/atkutil.cxx	2006-09-27 15:55:28.858388000 +0200
@@ -552,6 +552,7 @@
 
 long WindowEventHandler(void *, ::VclSimpleEvent const * pEvent)
 {
+    try {
     switch (pEvent->GetId())
     {
     case VCLEVENT_WINDOW_SHOW:
@@ -612,6 +613,10 @@
         //fprintf(stderr, "got event %d \n", pEvent->GetId());
         break;
     }
+    } catch(lang::IndexOutOfBoundsException e)
+    {
+	g_warning("Focused object has invalid index in parent");
+    }
     return 0;
 }
 
