I'm looking at line
https://github.com/apache/activemq-artemis/blob/1a49845628d66f1bd3fbc6b5ecbfd24a8fb5aac6/artemis-commons/src/main/java/org/apache/activemq/artemis/utils/collections/TypedProperties.java#L248-L248

A bug in our code caused that line to be hit. As far as I can tell, hitting
that line guarantees a NumberFormatException will be thrown.

Long.valueOf(null) and Integer.valueOf(null) both throw
a NumberFormatException. Double.valueOf(null) and Float.valueOf(null) throw
a NullPointerException.

If the property is null, maybe TypedProperties should throw
a ActiveMQPropertyConversionException?

If the community thinks it is an issue, I'll write one.

Reply via email to