mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
This PR aims at restoring the previous level of leniency in listing templates on stores that have been marked as deleted / removed by updating the DB. While Cloudstack doesn't allow deleting stores that have resources on them, it may so happen that users may mimic a deletion of a store by merely updating the DB. Under such a case, listing of templates is hampered due to an NPE that is caused. (as seen in #4606) Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>