Bug #1152
closedPossible nullpointer exceptions in WModelIndex
0%
Description
Hi,
I bumped into an issue in WModelIndex.C.
The child() and parent() methods each check whether the model_ is not 0, but flags() and data() assume the model_ is there. So I got a segmentation fault in flags().
Stacktrace:
Thread [14] 30536 (Suspended : Signal : SIGSEGV:Segmentation fault)
Wt::WModelIndex::flags() at WModelIndex.C:31 0xb7a09f96
Wt::WAbstractItemView::internalSelect() at WAbstractItemView.C:790 0xb786ef88
Wt::WTreeView::internalSelect() at WTreeView.C:2,589 0xb7aef00e
Wt::WAbstractItemView::select() at WAbstractItemView.C:878 0xb786f4ee
visys::interfaces::web::file_treeview_widget::select_path() at file_treeview_widget.cpp:145 0x910849b
visys::interfaces::web::file_view_widget::refresh() at file_view_widget.cpp:208 0x8fcad4c
visys::interfaces::web::specific_page::possibly_refresh_FS_tab() at specific_page.cpp:123 0x8da1df1
boost::_mfi::mf1<void, visys::interfaces::web::specific_page, Wt::WMenuItem*>::operator() at 0x8daf40a
void boost::_bi::list2<boost::_bi::value<visys::interfaces::web::specific_page*>, boost::arg<1> >::operator() at 0x8dae482
void boost::_bi::bind_t<void, boost::_mfi::mf1<void, visys::interfaces::web::specific_page, Wt::WMenuItem*, boost::_bi::list2<boost::_bi::value<visys::interfaces::web::specific_page*>, boost::arg<1> > >::operator() at 0x8dacf1c
<...more frames...>
Kind regards,
Rob.
Updated by Koen Deforche almost 13 years ago
- Status changed from New to InProgress
- Assignee set to Pieter Libin
- Target version set to 3.2.1
Updated by Pieter Libin almost 13 years ago
- Status changed from InProgress to Resolved