NullReferenceExceptions if using the main menus with no document open
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
Research direction
Start by launching the app with no documents open and exercise the Data and Properties entries in the left menu to reproduce the exceptions. Trace those menu entry points to identify where the no-document case is handled, then verify that both actions complete without exceptions when no document is open.
Written by the indexing model from the issue text.
Description
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.
- Dominant language
- C#
- Stars
- 450
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from dotnet/XAMLStudio
-
Wrong error place Openbug
Difficulty 3/5 1-2 days Newbie friendliness 35/100
dotnet/XAMLStudio#65 · 2 comments ·
-
bug enhancement help wanted
Difficulty 3/5 1-2 days Newbie friendliness 38/100
dotnet/XAMLStudio#63 ·
-
bug
Difficulty 5/5 Over a week Newbie friendliness 25/100
dotnet/XAMLStudio#60 · 1 reaction ·
-
bug
dotnet/XAMLStudio#48 · 1 assignee ·
-
documentation help wanted
Difficulty 5/5 Over a week Newbie friendliness 20/100
dotnet/XAMLStudio#34 · 2 comments · 2 reactions ·
All issues in dotnet/XAMLStudio
Similar issues
-
type/automation type/tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
t/bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
ci-failure-cause test-failure
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
area:auth FE mvp P3
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
klasolsson81/jobbliggaren#1788 ·