Skip to content

Commit

Permalink
ViewsRepository.notfiyRecordsChanged shall do nothing if no records
Browse files Browse the repository at this point in the history
  • Loading branch information
teosarca committed May 3, 2017
1 parent c6e2dd3 commit 988d0ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/de/metas/ui/web/view/ViewsRepository.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import java.util.concurrent.TimeUnit;

import org.adempiere.exceptions.AdempiereException;
import org.adempiere.util.Check;
import org.adempiere.util.lang.impl.TableRecordReference;
import org.compiere.util.Util.ArrayKey;
import org.slf4j.Logger;
Expand Down Expand Up @@ -197,7 +196,10 @@ private final void onViewRemoved(final RemovalNotification<Object, Object> notif
@Async
public void notifyRecordsChanged(final Set<TableRecordReference> recordRefs)
{
Check.assumeNotEmpty(recordRefs, "Parameter recordRefs is not empty");
if(recordRefs.isEmpty())
{
return;
}

final Collection<IView> views = this.views.asMap().values();

Expand Down

0 comments on commit 988d0ee

Please sign in to comment.