don't compare invalid iterators/node pointers

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38289 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2006-03-23 00:47:01 +00:00
parent b028252442
commit aa78d22e20

View File

@ -369,7 +369,7 @@ void wxControlContainer::HandleOnNavigationKey( wxNavigationKeyEvent& event )
for ( ;; )
{
// don't go into infinite loop
if ( start_node && node == start_node )
if ( start_node && node && node == start_node )
break;
// Have we come to the last or first item on the panel?