wspringer/preon — Issue #5: Error using match with @BoundNumber
Author: rdu
Created: 2012-02-04 10:19:28+00:00
State: open

Hi Wilfred,

I am getting a Nullpointer Exception everytime I use a match within the @BoundNumber annotation in current snapshot.
This is reproducable with plain archtype adding a match rule.

Example Stacktrace:

shouldDecodeCorrectly(de.guxx.ImageTest) Time elapsed: 0.11 sec <<< ERROR!
java.lang.NullPointerException
at org.codehaus.preon.el.util.Converters.toInt(Converters.java:60)
at org.codehaus.preon.codec.NumericCodec.decode(NumericCodec.java:106)
at org.codehaus.preon.binding.StandardBindingFactory$FieldBinding.load(StandardBindingFactory.java:104)
at org.codehaus.preon.codec.ObjectCodec.decode(ObjectCodec.java:85)
at org.codehaus.preon.DefaultCodecFactory$DefaultCodec.decode(DefaultCodecFactory.java:159)
at org.codehaus.preon.Codecs.decode(Codecs.java:208)
at org.codehaus.preon.Codecs.decode(Codecs.java:195)
at org.codehaus.preon.Codecs.decode(Codecs.java:176)
...