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

Missing null check causes NullPointerException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.2
    • 3.2.0
    • Archetypes
    • 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

              slachiewicz Sylwester Lachiewicz
              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