Skip to content

NullReferenceExceptions if using the main menus with no document open #56

@mrlacey

Description

@mrlacey

Describe the bug

Some of the main menu options assume that there is always a document open and will throw NullReferenceExceptions if clicked when there isn't.

It doesn't make for a great first experience if people are just clicking around to explore the interface.

Steps to reproduce

1. Launch the app for the first time (no documents open)
2a. Click "Data" in the left menu
2b. Or click "Properties" in the left menu
3. Get a NullReferenceException

Expected behavior

No exceptions.

These cases should be handled without problems.

Screenshots

No response

Windows Build Number

  • Windows 10 1809 (Build 17763)
  • Windows 10 1903 (Build 18362)
  • Windows 10 1909 (Build 18363)
  • Windows 10 2004 (Build 19041)
  • Windows 10 20H2 (Build 19042)
  • Windows 10 21H1 (Build 19043)
  • Windows 10 21H2 (Build 19044)
  • Windows 10 22H2 (Build 19045)
  • Windows 11 21H2 (Build 22000)
  • Windows 11 22H2 (Build 22621)
  • Windows 11 23H2 (Build 22631)
  • Windows 11 24H2 (Build 26100)
  • Windows 11 25H2 (Build 26200)
  • Windows 11 26H1 (Build 28000)
  • Other (specify)

Other Windows Build number

No response

Additional context

PR with fixes to follow.

Help us help you

Yes, I'd like to be assigned to work on this item.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions