Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-7930

Coverity: dereference null value in ClassLoadingAttributeDefinitions (Elytron subsystem)

    XMLWordPrintable

Details

    Description

      Coverity static-analysis scan found a possilbe method call on null object in the ClassLoadingAttributeDefinitions.resolveClassLoader method.

      https://scan7.coverity.com/reports.htm#v16159/p12663/fileInstanceId=6892131&defectInstanceId=1794525&mergedDefectId=1388482
      Following code

      Module current = Module.getCallerModule();
      if (module != null) {
          ModuleIdentifier mi = ModuleIdentifier.fromString(module);
          current = current.getModule(mi);
      

      The current value returned from Module.getCallerModule() may be null. The getModule() method is called on it without the null-check.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-ivassile Ilia Vassilev
              josef.cacek@gmail.com Josef Cacek
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: