diff --git a/js/ui/status/network.js b/js/ui/status/network.js index 0bb53bb61..337ea3fa4 100644 --- a/js/ui/status/network.js +++ b/js/ui/status/network.js @@ -1541,8 +1541,10 @@ const NMVPNSection = new Lang.Class({ item.setActiveConnection(null); } vpnConnections.forEach(Lang.bind(this, function(a) { - let item = this._connectionItems.get(a._connection.get_uuid()); - item.setActiveConnection(a); + if (a._connection) { + let item = this._connectionItems.get(a._connection.get_uuid()); + item.setActiveConnection(a); + } })); },