Project

General

Profile

Actions

Bug #1152

closed

Possible nullpointer exceptions in WModelIndex

Added by Rob Van Dyck about 12 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Pieter Libin
Target version:
Start date:
02/03/2012
Due date:
% Done:

0%

Estimated time:

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.

Actions #1

Updated by Koen Deforche about 12 years ago

  • Status changed from New to InProgress
  • Assignee set to Pieter Libin
  • Target version set to 3.2.1
Actions #2

Updated by Pieter Libin about 12 years ago

  • Status changed from InProgress to Resolved
Actions #3

Updated by Koen Deforche about 12 years ago

  • Status changed from Resolved to Closed

Fixed in 3.2.1

Actions

Also available in: Atom PDF