Skip to content

Commit

Permalink
use Object instead ERROR_UNKNOWN as default value for empty names
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoMario committed Jan 24, 2024
1 parent 0051519 commit 2eb75a8
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -3749,8 +3749,8 @@ public String sanitizeName(String name) {

// better error handling when map/array type is invalid
if (name == null) {
LOGGER.error("String to be sanitized is null. Default to ERROR_UNKNOWN");
return "ERROR_UNKNOWN";
LOGGER.error("String to be sanitized is null. Default to " + Object.class.getSimpleName());
return Object.class.getSimpleName();
}

// if the name is just '$', map it to 'value' for the time being.
Expand Down

0 comments on commit 2eb75a8

Please sign in to comment.