Expand my Community achievements bar.

Registering Hooks with no active room?

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.

1 Reply

Avatar

Employee

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/”);

am.login(username, password);

am.registerHook(hookURL);