From 4aa64ce1b17170e716bf7a1a249ed4e7bb0063fc Mon Sep 17 00:00:00 2001
From: Richard Alam <ritzalam@gmail.com>
Date: Mon, 1 Jun 2009 19:31:33 +0000
Subject: [PATCH] - fix NPE problem with scheduling

git-svn-id: http://bigbluebutton.googlecode.com/svn/trunk@1513 af16638f-c34d-0410-8cfa-b39d5352b314
---
 .../web/controllers/ScheduledSessionController.groovy         | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ScheduledSessionController.groovy b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ScheduledSessionController.groovy
index 0234204959..35be51db3e 100644
--- a/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ScheduledSessionController.groovy
+++ b/bigbluebutton-web/grails-app/controllers/org/bigbluebutton/web/controllers/ScheduledSessionController.groovy
@@ -103,8 +103,10 @@ class ScheduledSessionController {
 
     	def conflict = false
     	
+    	def sched
+    	
     	if (results.size() > 0) {
-        	def sched = results[0]    	
+        	sched = results[0]    	
        		if ((scheduledSessionInstance.startDateTime > sched.startDateTime) && (scheduledSessionInstance.startDateTime < sched.endDateTime)) {
        			log.debug "Start time is between start and date time of session ${sched.name}"
        			conflict = true
-- 
GitLab