Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET WPF: Lock focus button causes crash if 3D has never been enabled #140

Closed
garysheppardjr opened this issue Jan 2, 2018 · 1 comment
Assignees
Labels

Comments

@garysheppardjr
Copy link
Owner

Run the Exercise 2 solution. Without toggling to 3D, click the lock focus button. The program crashes.

This behavior probably happens in Exercises 3 through 5 as well.

We need to fix the bug in the solutions and then update the Exercise 2 text.

@garysheppardjr garysheppardjr added this to the March 2018 Release milestone Jan 2, 2018
@garysheppardjr garysheppardjr self-assigned this Jan 2, 2018
@garysheppardjr
Copy link
Owner Author

It's a null pointer in MainWindow.xaml.cs:

Geometry target = sceneView.GetCurrentViewpoint(ViewpointType.CenterAndScale).TargetGeometry;

GetCurrentViewpoint(ViewpointType) returns null if 3D has never been enabled.

garysheppardjr pushed a commit that referenced this issue Feb 15, 2018
* Updated copyright date

* Updated Java to Runtime 100.2 (#136)

- Updated Java exercises and solutions to ArcGIS Runtime 100.2.0
- Bumped app version from 2017.09 to 2018.03

* Updated to Runtime 100.2 (#137)

- Updated macOS exercises and solutions to ArcGIS Runtime 100.2.0
- Bumped app version to 2018.03

* Updated macOS to Runtime 100.2 (#138)

Updated macOS exercises and solutions to ArcGIS Runtime 100.2.0

* Updated iOS to Runtime 100.2 (#138)

Updated iOS exercises and solutions to ArcGIS Runtime 100.2.0

* Updated Android to Runtime 100.2 (#139)

- Updated Android exercises and solutions to ArcGIS Runtime 100.2.0
- Bumped app version to 2018.03

* Updated .NET WPF exercises to Runtime 100.2.0 (#141)

* Removed packages directories

These are binaries that don't belong in version control.

* Updated .NET WPF exercises to Runtime 100.2.0

* Disabling lock focus button until 3D is enabled once (#142)

Fixes #140

* Updated Qt Quick to Runtime 100.2.0 (#143)

Fixes #135
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant