mirror of
https://github.com/Telecominfraproject/wlan-cloud-opensync-controller.git
synced 2025-11-24 05:44:54 +00:00
fixed NPE in OvsdbDao.updateVifConfigsSetForRadio
This commit is contained in:
@@ -1983,18 +1983,22 @@ public class OvsdbDao {
|
|||||||
fResult = ovsdbClient.transact(ovsdbName, operations);
|
fResult = ovsdbClient.transact(ovsdbName, operations);
|
||||||
result = fResult.get(ovsdbTimeoutSec, TimeUnit.SECONDS);
|
result = fResult.get(ovsdbTimeoutSec, TimeUnit.SECONDS);
|
||||||
|
|
||||||
Set<Uuid> vifConfigsSet = null;
|
Set<Uuid> vifConfigsSet = new HashSet<Uuid>();
|
||||||
|
|
||||||
if (result != null && result.length > 0 && !((SelectResult) result[0]).getRows().isEmpty()) {
|
if (result != null && result.length > 0 && !((SelectResult) result[0]).getRows().isEmpty()) {
|
||||||
row = ((SelectResult) result[0]).getRows().iterator().next();
|
row = ((SelectResult) result[0]).getRows().iterator().next();
|
||||||
if (row != null) {
|
if (row != null) {
|
||||||
vifConfigsSet = row.getSetColumn("vif_configs");
|
vifConfigsSet = row.getSetColumn("vif_configs");
|
||||||
} else {
|
if(vifConfigsSet == null) {
|
||||||
vifConfigsSet = new HashSet<Uuid>();
|
vifConfigsSet = new HashSet<Uuid>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if(vifConfigUuid!=null) {
|
||||||
vifConfigsSet.add(vifConfigUuid);
|
vifConfigsSet.add(vifConfigUuid);
|
||||||
|
}
|
||||||
|
|
||||||
com.vmware.ovsdb.protocol.operation.notation.Set vifConfigs = com.vmware.ovsdb.protocol.operation.notation.Set
|
com.vmware.ovsdb.protocol.operation.notation.Set vifConfigs = com.vmware.ovsdb.protocol.operation.notation.Set
|
||||||
.of(vifConfigsSet);
|
.of(vifConfigsSet);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user