Uploaded image for project: 'Axis2'
  1. Axis2
  2. AXIS2-5272

Possible null pointer exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.6.1
    • 1.7.0
    • Integration
    • None

    Description

      In private EndpointReference calculateEndpoint(String protocol, String serviceName, String ip) method in /org.apache.axis2.osgi/src/org/apache/axis2/osgi/core/web/WebApp.java

      There is if statement like this,

      if (contextRoot.equals("/") || contextRoot == null)

      { contextRoot = ""; }

      here contextroot==null is useless because contextRoot.equals("/") will throw a null pointer exception if contextRoot is null.

      Attachments

        1. patch.patch
          0.7 kB
          Prabhath Suminda

        Activity

          People

            Unassigned Unassigned
            prabhath Prabhath Suminda
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: