We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0d4cb4 commit 8bff94dCopy full SHA for 8bff94d
CHANGELOG.md
@@ -5,6 +5,7 @@
5
### Fixes
6
7
- Check options.enabled during SDK initialization ([#250](https://github.com/getsentry/sentry-godot/pull/250))
8
+- Fix crashing when SDK is disabled via options ([#253](https://github.com/getsentry/sentry-godot/pull/253))
9
10
## 1.0.0-alpha.0
11
src/sentry_sdk.cpp
@@ -139,7 +139,7 @@ void SentrySDK::set_user(const Ref<SentryUser> &p_user) {
139
140
Ref<SentryUser> SentrySDK::get_user() const {
141
MutexLock lock(*user_mutex.ptr());
142
- return user->duplicate();
+ return user.is_valid() ? user->duplicate() : nullptr;
143
}
144
145
void SentrySDK::remove_user() {
0 commit comments