Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4962

possible NPE in FilterImpl

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.38.0
    • None
    • None

    Description

      In FilterImpl there is potential NullPointerException in the private method GetHeaderFieldValue() (line 169).

      When condition in line 161 is true and condition in line 164 is false then null return value of msg.getUserID() (cause in line 161 was true condition) derefers in 169. Is it absolutely true that in complex these conditions must only works as "true+true" or be skipped by first "false"? Does this part of code need another check before 169 line?

      Attachments

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              zilotinaed Ekaterina Zilotina
              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 - 1h
                  1h