Index: main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py
===================================================================
--- main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py	(revision 7030)
+++ main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py	(revision 7042)
@@ -1381,7 +1381,11 @@
             owner=(student.student_id,student.student_id))
         # Rlease old bed
-        allocated_bed = self.context.bed
-        allocated_bed.owner = NOT_OCCUPIED
-        notify(grok.ObjectModifiedEvent(allocated_bed))
+        try:
+            allocated_bed = self.context.bed
+            allocated_bed.owner = NOT_OCCUPIED
+            notify(grok.ObjectModifiedEvent(allocated_bed))
+        except AttributeError:
+            # Cannot happen but anyway...
+            pass
         # Alocate new bed
         self.context.bed_type = acc_details['bt']
