Skip to content

Commit e736919

Browse files
committed
allocate _poolIds before use
1 parent 0f8da40 commit e736919

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

api/src/com/cloud/deploy/DeploymentPlanner.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ public boolean add(ResourceUnavailableException e) {
100100
}
101101

102102
public void addPool(long poolId) {
103+
if (_poolIds == null) {
104+
_poolIds = new HashSet<Long>();
105+
}
103106
_poolIds.add(poolId);
104107
}
105108

0 commit comments

Comments
 (0)