Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-1353

null values as arguments in messagebundles lead to exceptions

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2
    • Fix Version/s: 1.9.0
    • Component/s: None
    • Labels:
      None

      Description

      When using a Deltaspike Messagebundle and feeding null as argument to some non-String argument, the MessageInterpolators throw Exceptions. Depending if I use the MessageFormatter or the String.format based Interpolater the Exceptions differ, but origin from the same misassumption, that null can be replaced with "'null'" (MessageBundleInvocationHandler:179)
      I created 2 unittests to showcase this behaviour, see attached surefire logs.

        Attachments

          Activity

            People

            • Assignee:
              struberg Mark Struberg
              Reporter:
              elexx Alexander Falb
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: