-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/24571/#review50309
-----------------------------------------------------------



server/src/com/cloud/api/ApiResponseHelper.java
<https://reviews.apache.org/r/24571/#comment87992>

    though null check solves the NPE, to get the record removed project you can 
use findProjectByProjectAccountIdIncludingRemoved.
    
    


- Rajani Karuturi


On Aug. 11, 2014, 7:29 p.m., Luis Henrique Okama wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/24571/
> -----------------------------------------------------------
> 
> (Updated Aug. 11, 2014, 7:29 p.m.)
> 
> 
> Review request for cloudstack.
> 
> 
> Bugs: https://issues.apache.org/jira/browse/CLOUDSTACK-7309
>     
> https://issues.apache.org/jira/browse/https://issues.apache.org/jira/browse/CLOUDSTACK-7309
> 
> 
> Repository: cloudstack-git
> 
> 
> Description
> -------
> 
> When listing usage records for running VMs and project to which this VM 
> belonged was removed, a Null Pointer Exception happens at the time of 
> building an usage response.
> 
> Included a verification to see if the project is null.
> 
> https://issues.apache.org/jira/browse/CLOUDSTACK-7309
> 
> 
> Diffs
> -----
> 
>   server/src/com/cloud/api/ApiResponseHelper.java 7718fc1 
> 
> Diff: https://reviews.apache.org/r/24571/diff/
> 
> 
> Testing
> -------
> 
> Using API, i got a list of instances successfully.
> 
> 
> Thanks,
> 
> Luis Henrique Okama
> 
>

Reply via email to