Opened 2 years ago

Closed 2 years ago

Last modified 2 years ago

#14405 closed bug (fixed)

BNotification and NotificationServer crash with OnClickRefs

Reported by: ahwayakchih Owned by: nobody
Priority: normal Milestone:
Component: Kits/Application Kit Version: R1/Development
Keywords: Notification Cc:
Blocked By: Blocking:
Platform: All


BNotification crashes after calling Send with OnClickRefs added.

If application works that around by sending message with refs directly to the notification server, server will crash after user clicks on the NotificationView - AFAIK because it uses the same BNotification class internally.

Bug is located in the BNotification::OnClickRefAt method ( The code there looks like this:

	return (entry_ref*)fArgv.ItemAt(index);

It should look like this instead:

	return (entry_ref*)fRefs.ItemAt(index);

Change History (2)

comment:1 by waddlesplash, 2 years ago

Resolution: fixed
Status: newclosed

Fixed in hrev52287. Thanks for reporting!

comment:2 by ahwayakchih, 2 years ago

Thanks :).

Note: See TracTickets for help on using tickets.