bug 11680: Fix to the listing of routers when the networkid is invalid.

This commit is contained in:
Naredula Janardhana Reddy 2011-11-02 15:10:43 +05:30
parent ad5341d0d3
commit 48c1044ebe
1 changed files with 4 additions and 0 deletions

View File

@ -1374,6 +1374,10 @@ public class NetworkManagerImpl implements NetworkManager, NetworkService, Manag
if (nics != null) {
for (Nic nic : nics) {
NetworkVO network = _networksDao.findById(nic.getNetworkId());
if (network == null) {
s_logger.warn("getNicProfiles : Skipping Network beacuse of Null");
continue;
}
Integer networkRate = getNetworkRate(network.getId(), vm.getId());
NetworkGuru guru = _networkGurus.get(network.getGuruName());