Browse code

BM-13171 Fix: dont fail on resource meetings

Thomas Fricker authored on 08/06/2018 13:24:32
Showing 1 changed files
... ...
@@ -220,7 +220,7 @@ public class ResourceIcsHook implements ICalendarHook {
220 220
 		for (DirEntry admin : getResourcesAdmins(directoryService, message.container.domainUid,
221 221
 				message.container.uid)) {
222 222
 
223
-			if (("bm://" + admin.path).equals(event.organizer.dir)) {
223
+			if (event.organizer != null && (("bm://" + admin.path).equals(event.organizer.dir))) {
224 224
 				logger.info("do not send email to organizer");
225 225
 				continue;
226 226
 			}
... ...
@@ -437,4 +437,5 @@ public class ResourceIcsHook implements ICalendarHook {
437 437
 		}
438 438
 		return (v1 == null && v2 != null) || (v2 == null && v1 != null) || (!v2.equals(v1));
439 439
 	}
440
+
440 441
 }