Tracker: fix unchecked return value. CID 602488

This commit is contained in:
John Scipione 2014-07-22 21:28:44 -04:00
parent 854c14fb6f
commit 628bd168bd

View File

@ -581,9 +581,10 @@ TTracker::MessageReceived(BMessage* message)
case kStopWatchClipboardRefs: case kStopWatchClipboardRefs:
{ {
BMessenger messenger; BMessenger messenger;
message->FindMessenger("target", &messenger); if (message->FindMessenger("target", &messenger) == B_OK
if (messenger.IsValid()) && messenger.IsValid()) {
fClipboardRefsWatcher->RemoveFromNotifyList(messenger); fClipboardRefsWatcher->RemoveFromNotifyList(messenger);
}
break; break;
} }