diff --git a/user/wxLayout/wxllist.cpp b/user/wxLayout/wxllist.cpp index 9d55127fdd..9c687de6d9 100644 --- a/user/wxLayout/wxllist.cpp +++ b/user/wxLayout/wxllist.cpp @@ -1248,7 +1248,7 @@ wxLayoutLine::Copy(wxLayoutList *llist, wxLOiterator last = FindObject(to, &lastOffset); // Common special case: only one object - if( *first == *last ) + if( first != NULLIT && last != NULLIT && *first == *last ) { if( (**first).GetType() == WXLO_TYPE_TEXT ) {