--- ./lib/Xm-2.1/RenderTable.c.orig 2005-06-24 06:36:03.000000000 -0500 +++ ./lib/Xm-2.1/RenderTable.c 2009-03-23 16:34:48.000000000 -0500 @@ -465,7 +465,7 @@ DEBUGOUT(_LtDebug(__FILE__, w, "_XmRenderTableFinaliseTag(%s)\n", tag)); #if 1 /* Experimental start */ - if (r->dpy == 0) + if (r->dpy == 0 && w) r->dpy = XtDisplay(w); /* Experimental end */ #endif