Uploaded image for project: 'appNG Manager'
  1. appNG Manager
  2. MGR-132

Avoid possible NPE while iterating over cache elements

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.19.0
    • Labels:
      None

      Description

      From the JavaDocs of javax.cache.Cache#iterator:

      During iteration, any entries that are a). read will have their appropriate CacheEntryReadListeners notified and b). removed will have their appropriate CacheEntryRemoveListeners notified.

      Iterator.next() may return null if the entry is no longer present, has expired or has been evicted.

        Attachments

          Activity

            People

            • Assignee:
              mueller.matthias Matthias Müller
              Reporter:
              mueller.matthias Matthias Müller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: