Hi Steve,
yes I think you are right.
Do you want to raise a pull request for that?
Cheers, Dan
On 13 Dec 2015 21:45, "Stephen Cameron" <[email protected]> wrote:
> Hi,
>
> I am upgrading to the 1.11.0-SNAPSHOT to make use of the JAXB integration.
>
> I've encountered an issue with Calendars, getting a null-pointer exception.
> It seems to be related to the following method in
> org.isisaddons.wicket.fullcalendar2.cpt.ui.EventProviderAbstract returning
> a null reference.
>
> private Object dereference(final Object domainObject) {
> final List<CalendarableDereferencingService>
> calendarableDereferencingServices =
> getServicesInjector().lookupServices(
> CalendarableDereferencingService.class);
> for (final CalendarableDereferencingService dereferencingService :
> calendarableDereferencingServices) {
> final Object dereferencedObject =
> dereferencingService.dereference(domainObject);
> if(dereferencedObject != domainObject) {
> return dereferencedObject;
> }
> }
> return domainObject;
> }
>
> The only CalendarableDereferencingService implementation used/found is one
> provided by the notes module. I suspect that the line should be
>
> - if( dereferencedObject != domainObject) {
> + if(dereferencedObject != null && dereferencedObject !=
> domainObject) {
> return dereferencedObject;
> }
>
> Thanks
>