mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Fix NPE in ConfigUtil (#4715)
Regression from #4657 Signed-off-by: Jimmy Tanagra <jcode@tanagra.id.au>
This commit is contained in:
+3
@@ -68,6 +68,9 @@ public class ConfigUtil {
|
||||
*/
|
||||
public static @Nullable Object getDefaultValueAsCorrectType(ConfigDescriptionParameter parameter) {
|
||||
if (parameter.isMultiple()) {
|
||||
if (parameter.getDefault() == null) {
|
||||
return null;
|
||||
}
|
||||
List<Object> defaultValues = Stream.of(DEFAULT_LIST_SPLITTER.split(parameter.getDefault())) //
|
||||
.map(value -> value.trim().replace("\\,", ",")) //
|
||||
.filter(not(String::isEmpty)) //
|
||||
|
||||
Reference in New Issue
Block a user