Uploaded image for project: 'Lucee Development'
  1. LDEV-1274

lsParseCurrency() throws NPE for negative numbers

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.2.39
    • Labels:
      None
    • Sprint:
      May-June 2017 Sprint

      Description

      CFSCRIPT-REPL: lsParseCurrency("$-1,234.56", "en_us")
      ERROR
      java.lang.NullPointerException
      

      This works as expected in Adobe CF 10, 11, and 2016. Expected output is

      -1234.56
      

        Attachments

          Activity

            People

            • Assignee:
              21solutions Igal Sapir
              Reporter:
              bdw429s Brad Wood
            • Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: