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

java.lang.NullPointerException if the rule imports the wrong class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 5.5.1.Final, 6.0.0.CR2
    • 6.0.0.CR1
    • None
    • None

    Description

      Method org.drools.compiler.rule.builder.dialect.mvel.addStaticPackageImport checks if the imported class can be loaded from the class loader (line 442) but line 444 calls cls.getDeclaredMethods() even if cls is null.

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              aledibe Alessandro Di Bella (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: