Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-9866

NPE in PictureTilesAdapter

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.6-RC2
    • Fix Version/s: 5.6-RC3, 5.7.1
    • Component/s: Image Management

      Description

      There is a NPE inside the PictureTilesAdapterImpl that make the big picture preview not usable.

      There are actually 3 problems :

      • tiles hashmap is not threadsafe : but this is not the main issue
      • cleanup() method of adapter set the tiles hashmap to null and noone reset it (main cause of the NPE)
      • the cleanup() method is called for bad reasons because the date comparison is broken (comparing a live date with date comming from the DB that has been rounded)

      The second problem is probably here for a long time but was not visible until the third problem arise.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tdelprat Thierry Delprat
                Reporter:
                tdelprat Thierry Delprat
                Participants:
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: