mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
Check for null values
This commit is contained in:
@@ -181,6 +181,9 @@ public class XmlRepositoryV1UpdateStep implements UpdateStep {
|
||||
}
|
||||
|
||||
private RepositoryPermission[] createPermissions(V1Repository v1Repository) {
|
||||
if (v1Repository.getPermissions() == null) {
|
||||
return new RepositoryPermission[0];
|
||||
}
|
||||
return v1Repository.getPermissions()
|
||||
.stream()
|
||||
.map(this::createPermission)
|
||||
|
||||
Reference in New Issue
Block a user