← Back to team overview

zeitgeist team mailing list archive

[Branch ~zeitgeist/zeitgeist/bluebird] Rev 254: fixed critical error where timerange = null and we try to look for the start and end, this was du...

 

------------------------------------------------------------
revno: 254
committer: Seif Lotfy <seif@xxxxxxxxx>
branch nick: bluebird
timestamp: Sat 2011-09-17 13:17:38 +0200
message:
  fixed critical error where timerange = null and we try to look for the start and end, this was due to the intersection returning null
modified:
  src/notify.vala


--
lp:~zeitgeist/zeitgeist/bluebird
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird

Your team Zeitgeist Framework Team is subscribed to branch lp:~zeitgeist/zeitgeist/bluebird.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'src/notify.vala'
--- src/notify.vala	2011-08-30 17:55:00 +0000
+++ src/notify.vala	2011-09-17 11:17:38 +0000
@@ -117,7 +117,7 @@
                 requires (proxy_object != null)
             {
                 var intersection_timerange = time_range.intersect(this.time_range);
-                if (intersection_timerange.start <= intersection_timerange.end)
+                if (intersection_timerange != null)
                 {
                     var matching_events = new GenericArray<Event>();
                     for (int i=0; i<events.length; i++)