Uploaded image for project: 'Maven Archetype'
  1. Maven Archetype
  2. ARCHETYPE-585

Missing null check causes NullPointerException

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.2
    • Fix Version/s: 3.2.0
    • Component/s: Archetypes
    • Labels:
      None

      Description

      RemoteCatalogArchetypeDataSource.getArchetypeCatalog calls RemoteCatalogArchetypeDataSource.getMirror.
      RemoteCatalogArchetypeDataSource.getMirror calls legacySupport.getSession, then invokes getRequest on the returned value with no null check.
      When the legacySupport session is null, this results in a NullPointerException.

      The fix is to add a null check before calling session.getRequest.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                slachiewicz Sylwester Lachiewicz
                Reporter:
                tony-- Tony Homer
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 10m
                  10m