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

NullPointerException in VariableListenerSupport if an entity gets added and its class extends another entity class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 6.1.0.Final
    • 6.1.0.CR1
    • optaplanner-core
    • None

      Breaks real-time planning changes for Time Windowed VRP instances in optaplanner-examples.

      Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
      	at org.optaplanner.core.impl.domain.variable.listener.VariableListenerSupport.beforeEntityAdded(VariableListenerSupport.java:54)
      	at org.optaplanner.core.impl.score.director.AbstractScoreDirector.beforeEntityAdded(AbstractScoreDirector.java:230)
      	at org.optaplanner.core.impl.score.director.AbstractScoreDirector.beforeEntityAdded(AbstractScoreDirector.java:192)
      	at org.optaplanner.examples.vehiclerouting.swingui.VehicleRoutingPanel$1.doChange(VehicleRoutingPanel.java:128)
      	at org.optaplanner.examples.common.business.SolutionBusiness.doProblemFactChange(SolutionBusiness.java:261)
      	at org.optaplanner.examples.vehiclerouting.swingui.VehicleRoutingPanel.insertLocationAndCustomer(VehicleRoutingPanel.java:105)
      

              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              gdesmet@redhat.com Geoffrey De Smet (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: