diff --git a/src/kits/interface/ListView.cpp b/src/kits/interface/ListView.cpp index 9784a9b370..e910ab6e03 100644 --- a/src/kits/interface/ListView.cpp +++ b/src/kits/interface/ListView.cpp @@ -781,7 +781,7 @@ BListItem* BListView::RemoveItem(int32 index) { BListItem* item = ItemAt(index); - if (!item) + if (item == NULL) return NULL; if (item->IsSelected())