Uploaded image for project: 'JBoss BRMS Platform'
  1. JBoss BRMS Platform
  2. RHBRMS-1430

Possible NPE when custom cloner is badly written

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Done
    • Major
    • 6.1.0
    • 6.1.0
    • OptaPlanner
    • None

    Description

      When user creates his own cloner, planner does not check if cloner works properly. Cloned solution could for example contain score as null and throws NPE during next solution comparison.

      Actual results:
      when cloner is badly written, planner throws NPE (but there are many possibilities what can go wrong)

      Expected results:
      At least FULL_ASSERT mode should detect bad cloner, but I think that checking cloner before every solving is not performance killer, so planner could check it always and throws some exception if needed.

      Attachments

        Activity

          People

            gdesmet@redhat.com Geoffrey De Smet (Inactive)
            jvahala Jiří Vahala (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson
            Lukáš Petrovický Lukáš Petrovický (Inactive)
            Lukáš Petrovický Lukáš Petrovický (Inactive)
            Kris Verlaenen, Lukáš Petrovický (Inactive)

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty