#4 TraceGenerator NPE

closed-fixed
nobody
None
5
2011-03-07
2011-03-05
No

When I try to use tracegenerator to generate the CP-Viz output

Search<Var> search = new DepthFirstSearch<Var>();
search.setPrintInfo(true);

Var[] varsArray = new Var[varsList.size()];
varsList.toArray(varsArray);

SimpleSelect select = //new InputOrderSelect(s, varsArray, new IndomainMin());
new SimpleSelect(varsArray, new SmallestDomain(), new WeightedDegree(), new IndomainMin());

TraceGenerator tg = new TraceGenerator(search, select);
boolean result = search.labeling(s, tg);

I get this NPE

java.lang.NullPointerException
at JaCoP.search.TraceGenerator.getChoiceConstraint(TraceGenerator.java:326)
at JaCoP.search.TraceGenerator.getChoiceConstraint(TraceGenerator.java:326)
at JaCoP.search.DepthFirstSearch.label(DepthFirstSearch.java:584)
at JaCoP.search.DepthFirstSearch.labeling(DepthFirstSearch.java:946)
at cz.micka.pavel.testgenerator.generator.jacop.JaCoPTestGenerator.generate(JaCoPTestGenerator.java:125)

JaCoP 3.1

Discussion

  • kris

    kris - 2011-03-07

    Hej!

    I have fixed this bug and updated svn.

    /Kris

     
  • kris

    kris - 2011-03-07
    • status: open --> closed-fixed
     
  • kris

    kris - 2011-03-07

    We have fixed this bug. It should work right now.

    /Kris

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks