diff --git a/dotCMS/src/main/java/com/dotcms/experiments/business/ExperimentsAPIImpl.java b/dotCMS/src/main/java/com/dotcms/experiments/business/ExperimentsAPIImpl.java index 13e1b4bb3e3a..a73a0c088e0c 100644 --- a/dotCMS/src/main/java/com/dotcms/experiments/business/ExperimentsAPIImpl.java +++ b/dotCMS/src/main/java/com/dotcms/experiments/business/ExperimentsAPIImpl.java @@ -605,7 +605,7 @@ public Experiment forceStart(String experimentId, User user) cancelScheduledExperimentsUponConflicts(experimentToSave, user); toReturn = innerStart(experimentToSave, user, false); } else { - Scheduling scheduling = persistedExperiment.scheduling().get(); + Scheduling scheduling = persistedExperiment.scheduling().orElseThrow(); final Experiment experimentToSave = persistedExperiment.withScheduling(scheduling).withStatus(SCHEDULED); if(runningExperimentOnPage.isPresent()) {