Fix for network not found in netconf.

This commit is contained in:
Adam Ierymenko 2014-06-27 00:47:07 +00:00
parent 5336f2600a
commit 999e963533

View File

@ -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);
});