powered by Jive Software

Smack 4.4.0 DataForm.Builder throws NPE when constructed using Builder() or Builder(type) and addItems() is called

This is due to the fact that neither the addItem() method has a check whether the List was actually initialised before attempting to add an element to the List, nor is the items field itself being initialised with say for example an ArrayList.
This is a crash that isn’t merely hypothetical but actually witnessed by myself after the update to 4.4.0.

Hope this is of help to you, cheers,
Dominik Ridjic

Thanks for reporting. I have created SMACK-900.

and

1 Like