Commit 701b08e7 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

ChurnGenerator without model silently fails

parent b6d96c48
......@@ -86,6 +86,10 @@ public class DefaultChurnGenerator implements EventHandler, ChurnGenerator {
@Override
public void eventOccurred(Object content, int type) {
if (this.churnModel == null) {
// fail silently if no churn model is configured.
return;
}
if (type == CHURN_EVENT) {
ChurnEvent churnEvent = (ChurnEvent) content;
SimNetworkComponent net = churnEvent.host.getNetworkComponent();
......
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