Page MenuHomePhorge

Fix NULL pointer exception from Calendar's homepage in some circumstances
Closed, ResolvedPublic


I tried using the Phorge/Phabricator Calendar import feature related to Importing .ics URIs.

After importing specific events, for example from Google Calendar (bleah), it can happen that the Calendar's homepage becomes broken. This was the exception error shown to video:

Call to a member function getEventsBetween() on null

This NULL pointer is thrown since this method can return NULL and it needs proper checks when used:


It seems this change was also fixed in 2019 by Wikimedia folks but never sent to upstream:

We could evaluate if they had a different approach.