[RM] Bug Script runs history > fix NPE if statistics isn't connected
@@ -89,7 +89,7 @@ public class TestScriptsHistoryBean extends AbstractTagsStatisticsBean implement
private List<AggregatedReportRow> selectedRows;
- private List<Tag> allCustomerTags;
+ private List<Tag> allCustomerTags = Collections.emptyList();
private List<Tag> customerTags = new ArrayList<>();
@@ -225,12 +225,12 @@ public class TestScriptsHistoryBean extends AbstractTagsStatisticsBean implement
public void init() {
super.init();
- this.allCustomerTags = new ArrayList<>(allTags);
-
this.statisticsDbAvailable = BeanUtil.getSfContext().getStatisticsService().isConnected();
if(statisticsDbAvailable) {
+ this.allCustomerTags = new ArrayList<>(allTags);
+
this.allRunStatuses = BeanUtil.getSfContext().getStatisticsService().getStorage().getAllRunStatuses();
this.mapper = new ObjectMapper();
