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

Avoid null pointer exception in FileUtils

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2021.0
    • Fix Version/s: None
    • Component/s: Core

      Description

      If a resource doesn't exist, return null instead of letting the code continue and throw a null pointer exception

      https://github.com/nuxeo/nuxeo-lts/blob/74816c8c1e99a0d841c9935a68bec93f0784e6e0/modules/runtime/nuxeo-common/src/main/java/org/nuxeo/common/utils/FileUtils.java#L159

       

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: