mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
CLOUDSTACK-7523
java.lang.NullPointerException when listing accounts
This commit is contained in:
parent
e06fa18ed2
commit
7a555b398f
2
server/src/com/cloud/api/query/dao/AccountJoinDaoImpl.java
Normal file → Executable file
2
server/src/com/cloud/api/query/dao/AccountJoinDaoImpl.java
Normal file → Executable file
@ -141,7 +141,7 @@ public class AccountJoinDaoImpl extends GenericDaoBase<AccountJoinVO, Long> impl
|
||||
|
||||
long volumeLimit = ApiDBUtils.findCorrectResourceLimit(account.getVolumeLimit(), account.getId(), ResourceType.volume);
|
||||
String volumeLimitDisplay = (fullView || volumeLimit == -1) ? "Unlimited" : String.valueOf(volumeLimit);
|
||||
long volumeTotal = (account.getVolumeTotal() == 0) ? 0 : account.getVolumeTotal();
|
||||
long volumeTotal = (account.getVolumeTotal() == null) ? 0 : account.getVolumeTotal();
|
||||
String volumeAvail = (fullView || volumeLimit == -1) ? "Unlimited" : String.valueOf(volumeLimit - volumeTotal);
|
||||
response.setVolumeLimit(volumeLimitDisplay);
|
||||
response.setVolumeTotal(volumeTotal);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user