HashMap.get will return null if the key is not found so this will throw a NPE. Probably better to do something like:

StringUtils.isNotBlank(configs.get("name")) && ...