Skip to content

Commit

Permalink
Fix crash on Android when starting/ending session manually (#696)
Browse files Browse the repository at this point in the history
* Fix classname for native start/end session android methods

* Update changelog
  • Loading branch information
tustanivsky authored Nov 25, 2024
1 parent db2ac4a commit 982894b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Fixes

- Fix crash on Android when starting/ending session manually ([#696](https://github.com/getsentry/sentry-unreal/pull/696))

### Dependencies

- Bump Native SDK from v0.7.12 to v0.7.15 ([#690](https://github.com/getsentry/sentry-unreal/pull/690), [#693](https://github.com/getsentry/sentry-unreal/pull/693), [#695](https://github.com/getsentry/sentry-unreal/pull/695))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,12 +248,12 @@ void SentrySubsystemAndroid::SetLevel(ESentryLevel level)

void SentrySubsystemAndroid::StartSession()
{
FSentryJavaObjectWrapper::CallStaticMethod<void>(SentryJavaClasses::SentryBridgeJava, "startSession", "()V", nullptr);
FSentryJavaObjectWrapper::CallStaticMethod<void>(SentryJavaClasses::Sentry, "startSession", "()V", nullptr);
}

void SentrySubsystemAndroid::EndSession()
{
FSentryJavaObjectWrapper::CallStaticMethod<void>(SentryJavaClasses::SentryBridgeJava, "endSession", "()V", nullptr);
FSentryJavaObjectWrapper::CallStaticMethod<void>(SentryJavaClasses::Sentry, "endSession", "()V", nullptr);
}

TSharedPtr<ISentryTransaction> SentrySubsystemAndroid::StartTransaction(const FString& name, const FString& operation)
Expand Down

0 comments on commit 982894b

Please sign in to comment.