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

Reply via email to