Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-511

KieContainerImpl.updateResourcesIncrementally throws NullPointerException when a package doesn't exist

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 6.2.0.CR1
    • 6.0.0.Final
    • None

      When calling KieContainerImpl.updateToVersion(ReleaseId), we sometimes experience a NullPointerException during a chained set of method calls that try to obtain a package, and then a rule within it.

      If the package is null, a NullPointerException is thrown, because there is no check in place before that call to get the rule from the package.

      To prevent this, a null check should be added to the package before trying to get the rule from it.

              mfusco@redhat.com Mario Fusco
              mikedev9000 Mike Wilson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: