Commit 419832ee authored by Romain Bioteau's avatar Romain Bioteau
Browse files

BS-14097

Check empty collection instead of null
parent 46f18148
......@@ -19,6 +19,7 @@ import java.io.InputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Set;
import org.bonitasoft.studio.common.NamingUtils;
import org.bonitasoft.studio.common.jface.FileActionDialog;
......@@ -168,7 +169,8 @@ public abstract class SourceRepositoryStore<T extends AbstractFileStore> extends
@Override
public List<T> getChildren() {
refresh();
if (getCompatibleExtensions() != null) {
Set<String> compatibleExtensions = getCompatibleExtensions();
if (compatibleExtensions != null && !compatibleExtensions.isEmpty()) {
return super.getChildren();
}
final List<T> result = new ArrayList<T>();
......
Supports Markdown
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