Tracker: fix unchecked return value. CID 602488
This commit is contained in:
parent
854c14fb6f
commit
628bd168bd
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user