Uploaded image for project: 'Runtime'
  1. Runtime
  2. RUNTIME-3300

GuavaCache handle incorrectly Optional wraping

    XMLWordPrintable

    Details

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

      Description

      Guava Cache class forbid to put null values into the cahe.

      To still allow null values to be stored, the implementation of Ametys Cache with Guava library wrap all values inside an Optional object.

      However, some functions used Optional.get() instead of Optional.orElse(null), and therefore throw an exception if the value is null

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                raphael Raphaël Franchet
                Reporter:
                kbourgoin Kepa Bourgoin
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: