Sign in to Community
Sign in to view all badges
Expand my Community achievements bar.
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?
You should be able to call registerHook with no active room. It sets the “hook” URL for the full account.
I think the roomInstance in this case is the “account” path so I don’t understand where it would fail.
Did you correctly created the AccountManager instance and logged in successfully ? What language are you developing in ?
The sequence should be something like:
am = AccountManager.new(“http://collaboration.adobelivecycle.com/”);