Commit bf617223 authored by Piotr Gawron's avatar Piotr Gawron
Browse files

don't return silently empty list

parent 70dd55fc
......@@ -460,9 +460,6 @@ public class LayoutService implements ILayoutService {
@Override
public List<Layout> getLayoutsByProject(Project project) {
List<Layout> result = new ArrayList<>();
if (project == null) {
return result;
}
List<Layout> overlays = layoutDao.getLayoutsByProject(project);
result.addAll(overlays);
result.sort(Layout.ID_COMPARATOR);
......
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