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 committed by root
parent 9feb05ac13
commit cd01f7dab2
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);