Uploaded image for project: 'OptaPlanner'
  1. OptaPlanner
  2. PLANNER-1451

Solver scope should end before the event is fired

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Minor Minor
    • 7.21.0.Final
    • 7.18.0.Final, 7.19.0.Final
    • optaplanner-core
    • None
    • 2019 Week 14-16
    • 0
    • NEW
    • NEW

      Invoking ((DefaultSolver) solver).getSolverScope().getScoreCalculationSpeed() from PhaseLifecycleListener#problemSolved listener results in NPE because Long private field endingSystemTimeMillis in DefaultSolverScope is not yet initialized. Most likely we need to end solver scope before the event is fired - i.e. or as Jiri Locker would simply point out we need to https://github.com/yurloc/optaplanner/commit/54c76e5489a350947342e3398632b260330866b0

            jlocker Jiří Locker
            vblagoje Vladimir Blagojevic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: