Closed saina-ramyar closed 11 months ago
Kudos, SonarCloud Quality Gate passed!
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
100.0% Coverage
0.0% Duplication
The version of Java (11.0.20.1) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. Read more here
PR Details
Description
Sensor list is initialized as an empty array so an exception is not thrown if there is no sensor configuration.
Related Issue
CDAR-427
Motivation and Context
If a sensor configuration file is not available, registration throws a NullPointerException exception causing CDASim to crash. This is not the desired behavior, since there may be times when a sensor config does not exist.
The solution is to initialize the sensors list as an empty list.
How Has This Been Tested?
local integration tested
Types of changes
Checklist: