public String[] listNotificationInterests( )
{
return null;
}
If you try to create a Mediator subclass and don't implement a listNotificationsInterests method, you will get a NullPointer exception because it is being referenced in registerMediator method of the View Class.
// Get Notification interests, if any.
String[] noteInterests = mediator.listNotificationInterests();
if (noteInterests.length == 0) {
return;
}
I think the default listNotificationsInterests should probably return a new String[] instead.
Thoughts?