]> code.delx.au - comingnext/commitdiff
don't break widget when a system backup is made
authorMichael Prager <michael@pragers.de>
Sat, 28 May 2011 13:45:00 +0000 (15:45 +0200)
committerMichael Prager <michael@pragers.de>
Sat, 28 May 2011 13:45:00 +0000 (15:45 +0200)
Readme.txt
comingNext/index.html

index bfebfafcfe6e6dce7a9623665087261e69632009..2b4b97886617e5e549eadbaa6eed73cc1570fe8b 100644 (file)
@@ -277,3 +277,4 @@ Changelog:
 1.33 () by Michael Prager\r
   - updated included "Skin Fetcher" tool to version 1.4 (now properly supports \r
     N8, E7, C6, C6-01, C7 and X7)\r
+  - don't break widget when a system backup is made\r
index 8bb8ab3a4c70c1d5e9853d349d7ead479bd58f8c..518c31d5331c6053932d55d13c9dcd24e0a862f8 100644 (file)
@@ -541,6 +541,16 @@ function updateData()
 \r
        // check if we got additional or less calendars since our last update\r
        var newCalendarList = listCalendars();\r
+       if (newCalendarList == null) {\r
+               // Something went wrong fetching the calendars list.\r
+               // This usually happens when a backup is being made.\r
+               // Retry the next time updateData() is called by \r
+               // resetting errorOccured\r
+               log('updateData(): listCalendars() failed, trying again laster...');\r
+               cacheEntriesHtml = ''; // make sure we replace the currently shown error message on the next update\r
+               errorOccured = false;\r
+               return;\r
+       }\r
        if (newCalendarList.length != calendarList.length) {\r
                calendarList = newCalendarList;\r
                updateCalendarColors();\r