Skip to content

m-settings: Fix the crash with empty settings

Ashok Sidipotu requested to merge config-refactor-enhancements into config-refactoring

Add a null check when iterator gets the value to detect the end of the JSON object, this will ensure the rest of the code that operates on the value is bypassed.

Still it must be noted that an empty setting screws up the following settings and behavior is undefined, this is the limiation in the spa-json parsing.

Merge request reports

Loading