Hi dave.
So that was found when running the verifier - but you chased it down
to double handling ?
If so, a bug report would be awesome as all the databtype permutations
are awesome.
Sent from my phone.
On 30/12/2008, at 12:34, "David Sinclair"
<dsinclair(a)chariotsolutions.com> wrote:
> Found a NullPointerException when using the verifier module.
> LiteralRestriction.setValue blows chunks, when the value is null. It
> sucks that Double.parseDouble doesn't behave the same as
> Integer.parseInt which handles nulls.
>
> java.lang.NullPointerException
> at
> sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:991)
> at java.lang.Double.parseDouble(Double.java:510)
> at
>
org.drools.verifier.components.LiteralRestriction.setValue(LiteralRestriction.java:128)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:688)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:123)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:572)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:562)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:119)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:482)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:183)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:529)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:113)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:482)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:410)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:111)
>
> at
> org.drools.verifier.PackageDescrFlattener.flatten(PackageDescrFlattener.java:389)
>
> at
>
org.drools.verifier.PackageDescrFlattener.addPackageDescrToData(PackageDescrFlattener.java:96)
>
> at org.drools.verifier.Verifier.addPackageDescr(Verifier.java:32)
> at
>
com.sungard.cmdb.generator.RuleGenerator.createValidationPackage(RuleGenerator.java:370)
>
> at
> com.sungard.cmdb.generator.RuleGenerator.generateCode(RuleGenerator.java:273)
>
> at
> com.sungard.cmdb.generator.JarBasedCodeGenerator.main(JarBasedCodeGenerator.java:156)
>
> _______________________________________________
> rules-dev mailing list
> rules-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-dev
_______________________________________________
rules-dev mailing list
rules-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-dev