Skip to content
Snippets Groups Projects
Commit 13b680db authored by Tor-Einar Skog's avatar Tor-Einar Skog
Browse files

Adding check for empty list of forecasts and models

parent 4a479c59
Branches
Tags
No related merge requests found
......@@ -324,7 +324,7 @@ public class ForecastBean {
.setParameter("organizationIds", organizationIds)
.getResultList();
if(!organizationUsers.isEmpty())
if(!organizationUsers.isEmpty() && ! modelIds.isEmpty())
{
return em
.createNamedQuery("ForecastConfiguration.findByVipsLogicUserIdsAndModelIdsAndDate")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment