This commit is contained in:
Eduard Heimbuch
2019-11-19 16:43:45 +01:00
parent aa7b6f5282
commit fd75277176
2 changed files with 3 additions and 2 deletions

View File

@@ -32,8 +32,8 @@ class V1RepositoryHelper {
Optional<File> file = resolveV1File(contextProvider, filename);
if (file.isPresent()) {
Object unmarshal = jaxbContext.createUnmarshaller().unmarshal(file.get());
if (unmarshal instanceof V1RepositoryHelper.V1RepositoryDatabase) {
return of((V1RepositoryHelper.V1RepositoryDatabase) unmarshal);
if (unmarshal instanceof V1RepositoryDatabase) {
return of((V1RepositoryDatabase) unmarshal);
} else {
return empty();
}