Commit e97af615 authored by Thibaut Démare's avatar Thibaut Démare

Fix issue with attribute filter

parent d158f144
...@@ -45,9 +45,9 @@ public class AddReceiverStatement extends AbstractStatement implements IStatemen ...@@ -45,9 +45,9 @@ public class AddReceiverStatement extends AbstractStatement implements IStatemen
String r = (String)(receiverid.value(scope)); String r = (String)(receiverid.value(scope));
String h = (String)(host.value(scope)); String h = (String)(host.value(scope));
int p = (Integer)(port.value(scope)); int p = (Integer)(port.value(scope));
Set filterSet = new HashSet((msi.gama.util.GamaList) filter.value(scope)); Set filterSet = null;
if (filterSet.size() == 0) if(filter != null)
filterSet = null; filterSet = new HashSet((msi.gama.util.GamaList) filter.value(scope));
GSManager.addReceiver(r, h, p, filterSet); GSManager.addReceiver(r, h, p, filterSet);
return null; return null;
} }
......
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