vswitchd: Initial conversion to database-based configuration.
[openvswitch] / ofproto / ofproto.c
index 60e1828ebe0ac0370554d0b88e979846ea2178f3..09388ba2fda418a8b29e1acdcdc0e76e18712ec0 100644 (file)
@@ -536,7 +536,7 @@ int
 ofproto_set_netflow(struct ofproto *ofproto,
                     const struct netflow_options *nf_options)
 {
-    if (nf_options->collectors.n) {
+    if (nf_options && nf_options->collectors.n) {
         if (!ofproto->netflow) {
             ofproto->netflow = netflow_create();
         }