* tui/tui-data.c (tui_prev_win): Guard against NULL.
authorThiago Jung Bauermann <bauerman@br.ibm.com>
Tue, 13 Nov 2007 17:00:11 +0000 (17:00 +0000)
committerThiago Jung Bauermann <bauerman@br.ibm.com>
Tue, 13 Nov 2007 17:00:11 +0000 (17:00 +0000)
gdb/ChangeLog
gdb/tui/tui-data.c

index 6ddb0752ed839233e33ebff33fa02da30e866a5b..83c5ba9c55d5ca11c24b8790061527e43cd16cb3 100644 (file)
@@ -1,3 +1,7 @@
+2007-11-13  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * tui/tui-data.c (tui_prev_win): Guard against NULL.
+
 2007-11-12  Markus Deuling  <deuling@de.ibm.com>
 
        * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove
index 190c687e9335ced9367564953ab50d456c89b54e..6014dc56a6ef84d1128730cb14a87ff8e8aead4e 100644 (file)
@@ -370,7 +370,8 @@ tui_prev_win (struct tui_win_info *cur_win)
     type = cur_win->generic.type - 1;
   while (type != cur_win->generic.type && (prev == NULL))
     {
-      if (tui_win_list[type]->generic.is_visible)
+      if (tui_win_list[type]
+         && tui_win_list[type]->generic.is_visible)
        prev = tui_win_list[type];
       else
        {