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:
{
BMessenger messenger;
message->FindMessenger("target", &messenger);
if (messenger.IsValid())
if (message->FindMessenger("target", &messenger) == B_OK
&& messenger.IsValid()) {
fClipboardRefsWatcher->RemoveFromNotifyList(messenger);
}
break;
}