1. The index in list. get (index) is a negative value. An exception occurred.
Severe: Exception occurred during processing request:-1
Java. lang. ArrayIndexOutOfBoundsException:-1
Cause: if (null! = List. get (list. size ()-1) & null! = List. get (list. size ()-1). getValue ())
{
}
Analysis: When list. when size () = 0, list. size ()-1 =-1, while list. if the index value in get (index) is greater than or equal to 0, an array out-of-bounds exception is thrown.
2. An error occurred while assigning values to list. get (0 ).
Severe: Exception occurred during processing request: Index: 0, Size: 0
Java. lang. IndexOutOfBoundsException: Index: 0, Size: 0
Cause: if (list. size () = 0)
{
MaxLabel = list. get (0). getLabel ();
MinLabel = list. get (0). getLabel ();
}
Analysis: When list. size = 0, the list is empty, and list. get (0). getLabel () throws an exception.