Skip to content

Commit 19b13d2

Browse files
committed
Version 2.1.6: Handling special case for string reports fingerprint when stack trace is empty
1 parent 1c4243e commit 19b13d2

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Backtrace Unity Release Notes
22

3+
## Version 2.1.6
4+
5+
- Handling special case for string reports fingerprint when stack trace is empty.
6+
37
## Version 2.1.5
48

59
- Backtrace Unity plugin UI improvements - added tooltips, headers and collapsible menu for advanced options.

Runtime/Model/BacktraceData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private void SetReportInformation()
206206
LangVersion = "Mono";
207207
#endif
208208

209-
AgentVersion = "2.1.5";
209+
AgentVersion = "2.1.6";
210210
Classifier = Report.ExceptionTypeReport ? new[] { Report.Classifier } : null;
211211
}
212212
}

Runtime/Model/BacktraceReport.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,11 @@ internal void SetMinidumpPath(string minidumpPath)
223223
/// </summary>
224224
internal void SetReportFingerPrintForEmptyStackTrace()
225225
{
226-
if (string.IsNullOrEmpty(Exception.StackTrace))
226+
if (Exception != null && string.IsNullOrEmpty(Exception.StackTrace))
227227
{
228228
// set attributes instead of fingerprint to still allow our user to define customer
229229
// fingerprints for reports without stack trace and apply deduplication rules in report flow.
230-
Attributes["_mod_fingerprint"] = Exception.Message.OnlyLetters().GetSha();
230+
Attributes["_mod_fingerprint"] = Message.OnlyLetters().GetSha();
231231
}
232232

233233
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "io.backtrace.unity",
33
"displayName": "Backtrace",
4-
"version": "2.1.5",
4+
"version": "2.1.6",
55
"unity": "2017.1",
66
"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.",
77
"keywords": [

0 commit comments

Comments
 (0)