Try complaining if alarm is null
authorEnrico Zini <enrico@enricozini.org>
Mon, 17 Aug 2009 15:22:08 +0000 (16:22 +0100)
committerEnrico Zini <enrico@enricozini.org>
Mon, 17 Aug 2009 15:22:08 +0000 (16:22 +0100)
src/clock.vala

index 93e5edc6ea5820fc2131cc491d394233d8e54d54..7cea3acee0c96ad1165a11d151fb393eeb6adcff 100644 (file)
@@ -86,6 +86,8 @@ public class Clock: zavai.Service
                        "org.freesmartphone.otimed",
                        "/org/freesmartphone/Time/Alarm",
                        "org.freesmartphone.Time.Alarm");
                        "org.freesmartphone.otimed",
                        "/org/freesmartphone/Time/Alarm",
                        "org.freesmartphone.Time.Alarm");
+        if (otimed_alarm == null)
+            zavai.log.error("ALARM IS NULL");
         notification = zavai.registry.sbus.get_object(
             "org.freesmartphone",
             "org/freesmartphone/Notification",
         notification = zavai.registry.sbus.get_object(
             "org.freesmartphone",
             "org/freesmartphone/Notification",