diff --git a/pd/src/g_editor.c b/pd/src/g_editor.c
index b3da6c7c6dbcb9ea7b5175e52ab5f6f6a964069b..9329aad7b44bd8d2f8c5878f0c502ae9bc981f41 100644
--- a/pd/src/g_editor.c
+++ b/pd/src/g_editor.c
@@ -3408,7 +3408,7 @@ void canvas_doclick(t_canvas *x, int xpos, int ypos, int which,
                 canvas_setcursor(x, CURSOR_EDITMODE_NOTHING); 
 
                 /* now check for tooltips object tooltips */
-                if (tooltips)
+                if (tooltips && ob)
                 {
                     t_rtext *yr = glist_findrtext(x, (t_text *)&ob->ob_g);
                     objtooltip = 1;