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

GuavaCache handle incorrectly Optional wraping

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.3.0
    • None
    • None
    • None

      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

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

              Created:
              Updated:
              Resolved: