fix: guard destroyItem against null entries in ViewPager mItems

Phillip Davis created

`null` was to `ConversationPage` in `destroyItem` when
`ViewPager.dataSetChanged`'s POSITION_NONE branch cleaned up a dormant
null in `mItems`. The null originates from `instantiateItem`'s
bounds-check branch (`position-2 >= sessions.size() -> return null`),
which ViewPager stores via `addNewItem` and later passes back to
`destroyItem` during cleanup.

Deterministically tested fix by the first call to `instantiateItem`
should return `null`, after which a `notifyDataSetChanged` via
tapping another command. Resulted in same crash as the report.

Change summary

src/main/java/eu/siacs/conversations/entities/Conversation.java | 1 +
1 file changed, 1 insertion(+)

Detailed changes