Tracker: fix unchecked return value. CID 602487

This commit is contained in:
John Scipione 2014-07-22 21:27:08 -04:00
parent a1c48ee597
commit d6a5d5962e

View File

@ -485,9 +485,10 @@ TTracker::MessageReceived(BMessage* message)
{
const node_ref* itemNode;
ssize_t bytes;
message->FindData("node_ref", B_RAW_TYPE,
(const void**)&itemNode, &bytes);
CloseWindowAndChildren(itemNode);
if (message->FindData("node_ref", B_RAW_TYPE,
(const void**)&itemNode, &bytes) == B_OK) {
CloseWindowAndChildren(itemNode);
}
break;
}