Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Fixes

- Check options.enabled during SDK initialization ([#250](https://github.com/getsentry/sentry-godot/pull/250))
- Fix crashing when SDK is disabled via options ([#253](https://github.com/getsentry/sentry-godot/pull/253))

## 1.0.0-alpha.0

Expand Down
2 changes: 1 addition & 1 deletion src/sentry_sdk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ void SentrySDK::set_user(const Ref<SentryUser> &p_user) {

Ref<SentryUser> SentrySDK::get_user() const {
MutexLock lock(*user_mutex.ptr());
return user->duplicate();
return user.is_valid() ? user->duplicate() : nullptr;
}

void SentrySDK::remove_user() {
Expand Down
Loading