From: Gary P. <gpa...@gm...> - 2009-09-07 11:53:41
|
Thanks for the heads up Andrich. A good catch. next has not been merged into master yet (thankfully). I will *NOT* be merging it until I receive a patch for the offending class. Code that is in that state will not make it into a release. Please get the patch to me asap. This would have obviously been found if there were some unit tests for the class. Wasting time like this is not constructive, at all. On Monday 07 September 2009 13:43:01 Andrich van Wyk wrote: > Hi > > In the next branch there is a bug in the > PartialReinitialisationResponseStrategy class, line 80: > > current.getPosition().randomize(null); > > this causes a NullPointer exception when the randomization is finally > delegated to the runtime Type class. > As shown by this stack trace: > > Exception in thread "Thread-16" java.lang.NullPointerException > at net.sourceforge.cilib.type.types.Real.randomize(Real.java:225) > at > net.sourceforge.cilib.type.types.container.Vector.randomize(Vector.java:464 > ) at > net.sourceforge.cilib.pso.dynamic.responsestrategies.PartialReinitialisatio > nResponseStrategy.respond(PartialReinitialisationResponseStrategy.java:80) > at > net.sourceforge.cilib.pso.dynamic.DynamicIterationStrategy.performIteration > (DynamicIterationStrategy.java:107) at > net.sourceforge.cilib.pso.dynamic.DynamicIterationStrategy.performIteration > (DynamicIterationStrategy.java:48) at > net.sourceforge.cilib.pso.PSO.algorithmIteration(PSO.java:121) at > net.sourceforge.cilib.algorithm.AbstractAlgorithm.performIteration(Abstract > Algorithm.java:129) at > net.sourceforge.cilib.algorithm.AbstractAlgorithm.run(AbstractAlgorithm.jav > a:171) at > net.sourceforge.cilib.simulator.Simulation.run(Simulation.java:81) > > Regards > |