File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -114,8 +114,17 @@ private class RepositoryDeserializer : StdDeserializer<Repository>(Repository::c
114114 }
115115 }
116116
117- val nestedRepositories = jsonMapper.treeToValue<Map <String , VcsInfo >>(node[" nested_repositories" ])
118- val config = jsonMapper.treeToValue<RepositoryConfiguration >(node[" config" ])
117+ val nestedRepositories = if (node.has(" nested_repositories" )) {
118+ jsonMapper.treeToValue<Map <String , VcsInfo >>(node[" nested_repositories" ])
119+ } else {
120+ emptyMap()
121+ }
122+
123+ val config = if (node.has(" config" )) {
124+ jsonMapper.treeToValue<RepositoryConfiguration >(node[" config" ])
125+ } else {
126+ RepositoryConfiguration ()
127+ }
119128
120129 return Repository (provenance = parsedProvenance, nestedRepositories, config)
121130 }
You can’t perform that action at this time.
0 commit comments