Avatar

Level 2

We are receiving a null pointer exception when calling

registerHook(String endpoint, String token)

This is because the roomInstance variable has not been set.

Shouldn't we be calling registerHooks prior to creating or accessing rooms?  So why does registerHook require a room instance?

Thanks.