File tree Expand file tree Collapse file tree
server/src/com/cloud/api/query Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2626import javax .ejb .Local ;
2727import javax .inject .Inject ;
2828
29- import org .apache .log4j .Logger ;
30- import org .springframework .stereotype .Component ;
31-
3229import org .apache .cloudstack .acl .ControlledEntity .ACLType ;
3330import org .apache .cloudstack .affinity .AffinityGroupDomainMapVO ;
3431import org .apache .cloudstack .affinity .AffinityGroupResponse ;
9895import org .apache .cloudstack .engine .subsystem .api .storage .TemplateState ;
9996import org .apache .cloudstack .framework .config .dao .ConfigurationDao ;
10097import org .apache .cloudstack .query .QueryService ;
98+ import org .apache .log4j .Logger ;
99+ import org .springframework .stereotype .Component ;
101100
102101import com .cloud .api .query .dao .AccountJoinDao ;
103102import com .cloud .api .query .dao .AffinityGroupJoinDao ;
@@ -3361,7 +3360,7 @@ public List<ResourceDetailResponse> listResourceDetails(ListResourceDetailsCmd c
33613360 detailList = _resourceMetaDataMgr .getDetailsList (resourceId , resourceType , forDisplay );
33623361 } else {
33633362 requestedDetail = _resourceMetaDataMgr .getDetail (resourceId , resourceType , key );
3364- if (forDisplay != null && requestedDetail .isDisplay () != forDisplay ) {
3363+ if (requestedDetail != null && forDisplay != null && requestedDetail .isDisplay () != forDisplay ) {
33653364 requestedDetail = null ;
33663365 }
33673366 }
You can’t perform that action at this time.
0 commit comments