HipchatAPIv2Client icon indicating copy to clipboard operation
HipchatAPIv2Client copied to clipboard

Room toJson fails when room doesn't have an owner

Open G-Rath opened this issue 7 years ago • 1 comments

I have a couple of rooms that don't have owners, which causes toJson to fail when called on those rooms.

While this may be a bug in HipChat, there should be a null check in toJson for when the owner is null.

G-Rath avatar May 25 '17 00:05 G-Rath

This is because the get_all_rooms API endpoint doens't return the owner in it's call.

Regardless this shouldn't trigger an error.

G-Rath avatar May 25 '17 01:05 G-Rath