Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.2, 1.2.0
-
None
-
None
Description
The restoreState() of the AbstractCEPPatternOperator restores the a Java PriorityQueue. For that it first reads the number of elements to insert and then creates a PriorityQueue object. However, Java's PriorityQueue cannot be instantiated with an initial capacity of 0, which is not checked.
In case of an empty queue, the PriorityQueue should be instantiated with an initial size of 1.