From 43434c63ad391529841ebe3a85801bd260c2b247 Mon Sep 17 00:00:00 2001 From: AJ Ragusa Date: Thu, 26 Feb 2015 11:42:14 -0500 Subject: [PATCH] improving error reporting on startup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit when starting up FSFW was properly bombing out. I’m making the error message more clear that the problem was the config --- .../edu/iu/grnoc/flowspace_firewall/FlowSpaceFirewall.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/edu/iu/grnoc/flowspace_firewall/FlowSpaceFirewall.java b/src/main/java/edu/iu/grnoc/flowspace_firewall/FlowSpaceFirewall.java index c7691cc..e6f11c2 100644 --- a/src/main/java/edu/iu/grnoc/flowspace_firewall/FlowSpaceFirewall.java +++ b/src/main/java/edu/iu/grnoc/flowspace_firewall/FlowSpaceFirewall.java @@ -430,8 +430,8 @@ public void init(FloodlightModuleContext context) }catch(InvalidConfigException e){ logger.error(e.getMsg()); } - - if(this.slices.size() == 0){ + + if(this.slices == null || this.slices.size() == 0){ logger.error("Problem with the configuration file!"); throw new FloodlightModuleException("Problem with the Config!"); }