LuciferYang opened a new issue, #13244: URL: https://github.com/apache/gravitino/issues/13244
**Version** main branch **Describe what's wrong** `ConfigEntry.readFrom` only consults `defaultValue` when the key is absent. With the key present but blank, the typed converters (int/long/double/boolean) map the blank string to `null` and `readFrom` returns `null`, bypassing the configured default; every typed consumer that unboxes the result then throws `NullPointerException`. **Error message and/or stacktrace** `java.lang.NullPointerException` at the typed consumer when it unboxes the `null` returned for a present-but-blank value. **How to reproduce** Define a typed (e.g. int) config entry with a default, set the key to a blank string, and read it; `readFrom` returns `null` and unboxing throws `NullPointerException`. **Additional context** String entries (where blank is a legitimate value) and no-default entries are unchanged. Found during a code audit of the `common` module. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
