added a null check in RacingEventServiceImpl where the notificationService may be null, especially in test cases

Change-Id: I508b4fc8ae083b57ab49c1c0b809a5b10df33a5c
This commit is contained in:
Axel Uhl committed 2016-07-20 01:47:59 +02:00
1 parent 9f1f12f88e
commit f0bbff8ecf
1 file changed
+4 -2
@@ -2859,8 +2859,10 @@ public class RacingEventServiceImpl implements RacingEventService, ClearStateTes
mediaLibrary.clear();
competitorStore.clear();
remoteSailingServerSet.clear();
notificationService.stop();
notificationService = new EmptySailingNotificationService();
if (notificationService != null) {
notificationService.stop();
notificationService = new EmptySailingNotificationService();
}
}
// Used for TESTING only