intercom-java icon indicating copy to clipboard operation
intercom-java copied to clipboard

You must validate collection size

Open ig0rix opened this issue 5 years ago • 0 comments

Please fix code like this: https://github.com/intercom/intercom-java/blob/746c37745531bd4a8eda0be6085402ead739f64c/intercom-java/src/main/java/io/intercom/api/Conversation.java#L276

You must validate collection size before call ...get(0) Оtherwise it will be java.lang.ArrayIndexOutOfBoundsException: 0

ig0rix avatar Apr 01 '19 11:04 ig0rix