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)
Show replies by date