Commit d6aa1034 authored by Adrien's avatar Adrien Committed by GitHub
Browse files

fix(git) branches with different REST APi extensions (#1192)

* swiching from a branch A into a Branch B with different rest API leads
to errors, because target folders are ignored -> eclipse doesn't realize
that the rest API isn't present on the current branch because the parent
folder exists because the target folder isn't reset because it is
ignored. -> we check that the pom.xml is present to decide that the rest
APi exists.

closes [BS-18405](https://bonitasoft.atlassian.net/browse/BS-18405)
parent e4287b05
......@@ -64,7 +64,7 @@ public abstract class AbstractFolderRepositoryStore<T extends IRepositoryFileSto
public List<T> getChildren() {
refresh();
final List<T> result = new ArrayList<T>();
final List<T> result = new ArrayList<>();
final IFolder folder = getResource();
try {
for (final IResource r : folder.members()) {
......
......@@ -412,7 +412,9 @@ public abstract class AbstractRepositoryStore<T extends IRepositoryFileStore> im
final IFolder folder = getResource();
final FileStoreCollector collector = new FileStoreCollector(folder,
toArray(getCompatibleExtensions(), String.class));
folder.accept(collector);
if (folder.exists()) {
folder.accept(collector);
}
return collector.toList();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment