summaryrefslogtreecommitdiffstats
path: root/generic/tkWindow.c
diff options
context:
space:
mode:
Diffstat (limited to 'generic/tkWindow.c')
-rw-r--r--generic/tkWindow.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/generic/tkWindow.c b/generic/tkWindow.c
index b5cbbab..1e88844 100644
--- a/generic/tkWindow.c
+++ b/generic/tkWindow.c
@@ -2391,6 +2391,9 @@ Tk_IdToWindow(
break;
}
}
+ if (window == None) {
+ return NULL;
+ }
hPtr = Tcl_FindHashEntry(&dispPtr->winTable, (char *) window);
if (hPtr == NULL) {