Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2697349
D25060.1734923523.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
939 B
Referenced Files
None
Subscribers
None
D25060.1734923523.diff
View Options
diff --git a/src/applications/calendar/query/PhabricatorCalendarEventQuery.php b/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
--- a/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
+++ b/src/applications/calendar/query/PhabricatorCalendarEventQuery.php
@@ -222,12 +222,16 @@
$limit = $this->getRecurrenceLimit($event, $raw_limit);
+ // note that this can be NULL for some imported events
$set = $event->newRecurrenceSet();
- $recurrences = $set->getEventsBetween(
- $start_date,
- $end_date,
- $limit + 1);
+ $recurrences = array();
+ if ($set) {
+ $recurrences = $set->getEventsBetween(
+ $start_date,
+ $end_date,
+ $limit + 1);
+ }
// We're generating events from the beginning and then filtering them
// here (instead of only generating events starting at the start date)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 03:12 (9 h, 21 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1026121
Default Alt Text
D25060.1734923523.diff (939 B)
Attached To
Mode
D25060: Fix NULL pointer exception in some circumstances from Calendar's homepage
Attached
Detach File
Event Timeline
Log In to Comment