Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Registering Hooks with no active room?


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?


0 Replies



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 =“”);

am.login(username, password);