Index: trunk/grails-app/services/TaskRecurringScheduleService.groovy
===================================================================
--- trunk/grails-app/services/TaskRecurringScheduleService.groovy	(revision 433)
+++ trunk/grails-app/services/TaskRecurringScheduleService.groovy	(revision 434)
@@ -3,6 +3,10 @@
     boolean transactional = false
 
+    // Can hold state since the service is a singleton.
+    boolean baseDataWarnLogged = false
+
+    def taskService
     def dateUtilService
-    def taskService
+    def appConfigService
 
     /**
@@ -13,7 +17,16 @@
         def taskRecurringScheduleList = TaskRecurringSchedule.findAllByEnabled(true)
 
+        // Prevent errors if base data has not yet been created.
+        if(!appConfigService.exists("baseDataCreated")) {
+            if(!baseDataWarnLogged) {
+                log.warn "Base data has not been created, can't generate all."
+                baseDataWarnLogged = true
+            }
+            return
+        }
+
         taskRecurringScheduleList.each() {
 
-            if ( dateUtilService.tomorrow > it.nextGenerationDate) {
+            if (dateUtilService.tomorrow > it.nextGenerationDate) {
                     def p = [:]
 
