mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-09 06:55:47 +01:00
When using lfs, it could happen that there are files committed before the `.gitattributes` file was updated. In these cases, it could occure that we find files, that are no lfs pointers, although they are marked as lfs files in the attributes. In these cases we just want to handle such files just as normal blobs and ignore the fact and do not fail. Before, a null pointer exception was thrown, because the LfsPointer class from jgit returned null, which did raise the exception in the Optional#of method.