Uploaded image for project: 'Synapse'
  1. Synapse
  2. SYNAPSE-505

[PATCH] Fix NPE in XQueryMediator due to invalid non short-circuited if

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.1.1
    • 2.0
    • Extension Mediators
    • None

    Description

      Code has NPE potential due to invalid non-short-circuited if statement:

      if (variables != null & !variables.isEmpty()) {

      patch changes it to

      if (variables != null && !variables.isEmpty()) {

      Attachments

        1. fix_xquery_npe.diff
          0.8 kB
          Dave Brosius

        Activity

          People

            veithen Andreas Veithen
            dbrosius@apache.org Dave Brosius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: