mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 13:20:57 +00:00
added a null check in RacingEventServiceImpl where the notificationService may be null, especially in test cases
Change-Id: I508b4fc8ae083b57ab49c1c0b809a5b10df33a5c
This commit is contained in:
1 parent
9f1f12f88e
commit
f0bbff8ecf
1 file changed
+4
-2
+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
|
||||
|
||||
Reference in new issue
Block a user