Final commit
This commit is contained in:
		| @ -74,8 +74,8 @@ public class LessonRequestService { | ||||
|         if(lessonRequest == null || state == lessonRequest.getState()  || state == null){ | ||||
|             return false;} | ||||
|         if (state == RequestState.Accepted){ | ||||
|             Course course = courseRepository.findById(lessonRequest.getCourse().getCourseId()); | ||||
|             if(courseRepository.findById(lessonRequest.getCourse().getCourseId())==null|| local == null){ | ||||
|             Course course = courseRepository.findById(lessonRequest.getCourse().getCourseID()); | ||||
|             if(courseRepository.findById(lessonRequest.getCourse().getCourseID())==null|| local == null){ | ||||
|                 return false;} | ||||
|             Lesson lesson = new Lesson(); | ||||
|             lesson.setCourse(course); | ||||
|  | ||||
		Reference in New Issue
	
	Block a user