Search Issue Tracker

Fixed in 2.0.0-preview

Votes

0

Found in [Package]

preview - 1.2.0

Issue ID

1194745

Regression

No

[Device Simulator] NullReferenceException is thrown when opening a device with json with no deviceinfo set

Package: Device Simulator

-

How to reproduce:
1. Open the user attached project
2. Open preferences -> "Device Simulator"
3. Set Device Directory to "MyDevice" folder in the 'Assets' folder
4. Go to General -> "Device Simulator"
5. Select Apple -> "iPhone X" in the device list

Expected results: A device window is shown
Actual results: A device window is not shown, NullReferenceException is thrown

Reproducible with: 2019.3.0b1, 2019.3.0f1, 2020.1.0a2, 2020.1.0a15 (package ver. preview - 1.3.0)

Additional notes:
1. The Custom Device was introduced in Device Simulator preview - 1.2.0
2. A project could not be tested on 2019.2 and earlier due to missing Device Simulator package
3. A project could not be tested on 2019.3.0a12 and earlier due to compilation errors
4. Compilation errors are thrown on 2020.1.0a1

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.