--- gtk/gtknotebook.c.old	2008-12-22 21:26:31.000000000 +0100
+++ gtk/gtknotebook.c	2008-12-22 21:26:23.000000000 +0100
@@ -2822,6 +2822,9 @@
   priv = GTK_NOTEBOOK_GET_PRIVATE (notebook);
   page = notebook->cur_page;
 
+  if (!page)
+    return FALSE;
+
   if (!priv->during_detach &&
       page->reorderable &&
       event->button == priv->pressed_button)
