[serde-extension] Ignore unknown compound keys

This commit is contained in:
2025-07-27 13:40:08 +02:00
parent 91b0274a05
commit 5678a6bf87

View File

@@ -176,6 +176,11 @@ public class TweedEntryReaderWriterImpls {
//noinspection unchecked
ConfigEntry<Object> subEntry = (ConfigEntry<Object>) compoundEntries.get(key);
if (subEntry == null) {
//noinspection DataFlowIssue
NOOP_READER_WRITER.read(reader, null, context);
continue;
}
var subEntryReaderChain = context.readWriteExtension().getReaderChain(subEntry);
Object subEntryValue = subEntryReaderChain.read(reader, subEntry, context);
entry.set(compoundValue, key, subEntryValue);