File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
spring-context/src/main/java/org/springframework/scheduling/config Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -130,7 +130,7 @@ public void setTriggerTasksList(List<TriggerTask> triggerTasks) {
130
130
* @since 4.2
131
131
*/
132
132
public List <TriggerTask > getTriggerTaskList () {
133
- return Collections .unmodifiableList (this .triggerTasks );
133
+ return ( this . triggerTasks != null ? Collections .unmodifiableList (this .triggerTasks ) : null );
134
134
}
135
135
136
136
/**
@@ -159,7 +159,7 @@ public void setCronTasksList(List<CronTask> cronTasks) {
159
159
* @since 4.2
160
160
*/
161
161
public List <CronTask > getCronTaskList () {
162
- return Collections .unmodifiableList (this .cronTasks );
162
+ return ( this . cronTasks != null ? Collections .unmodifiableList (this .cronTasks ) : null );
163
163
}
164
164
165
165
/**
@@ -188,7 +188,7 @@ public void setFixedRateTasksList(List<IntervalTask> fixedRateTasks) {
188
188
* @since 4.2
189
189
*/
190
190
public List <IntervalTask > getFixedRateTaskList () {
191
- return Collections .unmodifiableList (this .fixedRateTasks );
191
+ return ( this . fixedRateTasks != null ? Collections .unmodifiableList (this .fixedRateTasks ) : null );
192
192
}
193
193
194
194
/**
@@ -217,7 +217,7 @@ public void setFixedDelayTasksList(List<IntervalTask> fixedDelayTasks) {
217
217
* @since 4.2
218
218
*/
219
219
public List <IntervalTask > getFixedDelayTaskList () {
220
- return Collections .unmodifiableList (this .fixedDelayTasks );
220
+ return ( this . fixedDelayTasks != null ? Collections .unmodifiableList (this .fixedDelayTasks ) : null );
221
221
}
222
222
223
223
/**
You can’t perform that action at this time.
0 commit comments