modules/core/plugin-container/src/main/java/org/rhq/core/pc/inventory/InventoryManager.java
| 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit f658f9542ecb953249b7ba5859abfb6b72221057
Author: John Mazzitelli <mazz(a)redhat.com>
Date: Thu Jan 31 18:22:05 2013 -0500
make a array copy of the IDs
diff --git
a/modules/core/plugin-container/src/main/java/org/rhq/core/pc/inventory/InventoryManager.java
b/modules/core/plugin-container/src/main/java/org/rhq/core/pc/inventory/InventoryManager.java
index 29ca007..59a669e 100644
---
a/modules/core/plugin-container/src/main/java/org/rhq/core/pc/inventory/InventoryManager.java
+++
b/modules/core/plugin-container/src/main/java/org/rhq/core/pc/inventory/InventoryManager.java
@@ -2889,7 +2889,7 @@ public class InventoryManager extends AgentService implements
ContainerService,
int end = (BATCH_SIZE < size) ? BATCH_SIZE : size;
List<Integer> resourceIdBatch = resourceIdList.subList(0, end);
- Integer[] resourceIdArray = new Integer[resourceIdBatch.size()];
+ Integer[] resourceIdArray = resourceIdBatch.toArray(new
Integer[resourceIdBatch.size()]);
// Advance our progress and possibly help GC. This will remove the processed
resources from the backing list
resourceIdBatch.clear();
Show replies by date