for (Flow f : fm.getTableForNode(nodeId, (short) 0).getFlow()) {\r
flowMap.put(f.getId().getValue(), f);\r
Long etherType = null;\r
- if (f.getMatch() != null) {\r
+ if (f.getMatch() != null && f.getMatch().getEthernetMatch() !=null) {\r
etherType = f.getMatch().getEthernetMatch().getEthernetType().getType().getValue();\r
}\r
if (f.getMatch() == null || FlowUtils.ARP.equals(etherType) || FlowUtils.IPv4.equals(etherType)\r