diff options
-rw-r--r-- | netconf-service/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/netconf-service/index.js b/netconf-service/index.js index 5125cb8c..fd6aae55 100644 --- a/netconf-service/index.js +++ b/netconf-service/index.js @@ -291,7 +291,7 @@ function doNetconfRequest(message) // network lookup DB.hgetall(networkKey,function(err,obj) { - if (obj.id === nwid) + if ((!err)&&(obj)&&(obj.id === nwid)) network = obj; return next(null); }); |