Skip to content

Commit

Permalink
Version 2.1.6: Handling special case for string reports fingerprint w…
Browse files Browse the repository at this point in the history
…hen stack trace is empty
  • Loading branch information
konraddysput committed Jun 4, 2020
1 parent 1c4243e commit 19b13d2
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Backtrace Unity Release Notes

## Version 2.1.6

- Handling special case for string reports fingerprint when stack trace is empty.

## Version 2.1.5

- Backtrace Unity plugin UI improvements - added tooltips, headers and collapsible menu for advanced options.
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Model/BacktraceData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ private void SetReportInformation()
LangVersion = "Mono";
#endif

AgentVersion = "2.1.5";
AgentVersion = "2.1.6";
Classifier = Report.ExceptionTypeReport ? new[] { Report.Classifier } : null;
}
}
Expand Down
4 changes: 2 additions & 2 deletions Runtime/Model/BacktraceReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -223,11 +223,11 @@ internal void SetMinidumpPath(string minidumpPath)
/// </summary>
internal void SetReportFingerPrintForEmptyStackTrace()
{
if (string.IsNullOrEmpty(Exception.StackTrace))
if (Exception != null && string.IsNullOrEmpty(Exception.StackTrace))
{
// set attributes instead of fingerprint to still allow our user to define customer
// fingerprints for reports without stack trace and apply deduplication rules in report flow.
Attributes["_mod_fingerprint"] = Exception.Message.OnlyLetters().GetSha();
Attributes["_mod_fingerprint"] = Message.OnlyLetters().GetSha();
}

}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "io.backtrace.unity",
"displayName": "Backtrace",
"version": "2.1.5",
"version": "2.1.6",
"unity": "2017.1",
"description": "Backtrace's integration with Unity games allows customers to capture and report handled and unhandled Unity exceptions to their Backtrace instance, instantly offering the ability to prioritize and debug software errors.",
"keywords": [
Expand Down

0 comments on commit 19b13d2

Please sign in to comment.