mixer / interactive-cpp

C++ SDK for Mixer Interactivity
MIT License
25 stars 56 forks source link

Crash in interactive_get_user #89

Closed JoshSnider closed 6 years ago

JoshSnider commented 6 years ago

I have encountered a crash when calling interactive_get_user. The detail is as follows: File : interactive_session.cpp(898) Source : user.avatarUrl = responseDoc["avatarUrl"].GetString(); Message: Expression: IsString()

It looks data_.f.flags is 0 and fails on RAPIDJSON_ASSERT(IsString()).

The code works fine on Xbox One, but it crashes on PC.

connor4312 commented 6 years ago

The avatar URL may be null -- could that cause the error you're seeing?

JoshSnider commented 6 years ago

Yeah I believe a null check before attempting to get the string will fix this.

JoshSnider commented 6 years ago

Fixed with: cff5898bf3d553757193054afae6044674481973