Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-21005

NullPointerException if an RA module is missing META-INF/ra.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 38.0.0.Final
    • None
    • None
    • None

      org.jboss.as.connector.subsystems.resourceadapters.RaOperationUtil.installRaServicesAndDeployFromModule

              URL path = module.getExportedResource("META-INF/ra.xml");
              Closeable closable = null;
                  try {
                      VirtualFile child;
                      if (path.getPath().contains("!")) {
      

      This code fails to check if path is null (META-INF/ra.xml not found) before using it, causing a NullPointerException.
      It should instead check it for null and throw an appropriate error message.

              lvydra Lukas Vydra
              lvydra Lukas Vydra
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: