bug 11181: taking care of a boundary condition with 0 user VM

This commit is contained in:
Abhinandan Prateek 2011-08-25 15:36:08 +05:30
parent 7b034a68c0
commit 0d14faec34
1 changed files with 2 additions and 1 deletions

View File

@ -402,7 +402,8 @@ public class UserVmDaoImpl extends GenericDaoBase<UserVmVO, Long> implements Use
}
rs.close();
}
pstmt.close();
if (pstmt!=null)pstmt.close();
return userVmDataHash;
} catch (SQLException e) {
throw new CloudRuntimeException("DB Exception on: " + VM_DETAILS, e);