See ARTEMIS-3887 [1] regarding this behavior.

Justin

[1] https://issues.apache.org/jira/browse/ARTEMIS-3887

On Fri, Mar 10, 2023 at 11:57 AM Aaron Hoffer <aa...@hoffer.org> wrote:

> 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