Added an exception to decodeIntValue if the array is too short