Ticket #1028: ticket1028.patch

File ticket1028.patch, 525 bytes (added by dominic, 17 years ago)

Bugfix: Window() seems to be null in the error case

  • src/kits/tracker/FindPanel.cpp

     
    18301830void
    18311831FindPanel::SetUpAddRemoveButtons(BBox *box)
    18321832{
    1833     BButton *button = dynamic_cast<BButton *>(Window()->FindView("remove"));
     1833    BButton *button = Window() ? dynamic_cast<BButton *>(Window()->FindView("remove")) : NULL;
    18341834    if (!button) { 
    18351835        BRect rect = box->Bounds();
    18361836        rect.InsetBy(5, 10);