Skip to content

Commit ab6514e

Browse files
authored
Version 3.8.5: Handle nullable graphic card attributes (#201)
* Version 3.8.5: Handle nullable graphic card attributes * Update Runtime/Model/Attributes/MachineAttributeProvider.cs
1 parent 2d4f738 commit ab6514e

File tree

4 files changed

+12
-2
lines changed

4 files changed

+12
-2
lines changed

CHANGELOG.md

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

3+
## Version 3.8.5
4+
5+
Bugfixes
6+
- Fixed populating graphic card attributes, when graphic card is not available.
7+
38
## Version 3.8.4
49

510
Bugfixes

Runtime/BacktraceClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ namespace Backtrace.Unity
2424
/// </summary>
2525
public class BacktraceClient : MonoBehaviour, IBacktraceClient
2626
{
27-
public const string VERSION = "3.8.4";
27+
public const string VERSION = "3.8.5";
2828
internal const string DefaultBacktraceGameObjectName = "BacktraceClient";
2929
public BacktraceConfiguration Configuration;
3030

Runtime/Model/Attributes/MachineAttributeProvider.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,12 @@ private void IncludeOsInformation(IDictionary<string, string> attributes)
8282
}
8383
private void IncludeGraphicCardInformation(IDictionary<string, string> attributes)
8484
{
85+
// if a graphic card is not available
86+
if (SystemInfo.graphicsDeviceType == null)
8587

88+
{
89+
return;
90+
}
8691
//This is the PCI device ID of the user's graphics card. Together with SystemInfo.graphicsDeviceVendorID,
8792
//this number uniquely identifies a particular graphics card model.
8893
//The number is the same across operating systems and driver versions.

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": "3.8.4",
4+
"version": "3.8.5",
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)