0x5bfa / FluentHub

A stylish yet powerful GitHub client for Windows
MIT License
1.08k stars 52 forks source link

NullReferenceException in UserHomePage #255

Closed M7MDE7EGAZY closed 1 year ago

M7MDE7EGAZY commented 1 year ago

⏱️ Before you start...

🪟 What version of Windows is this issue present?

Windows 11 Beta

🔢 What version/architecture of FluentHub are you on?

0.3.7 Release

📄 Description

I face the error of "object reference is not set to an instance of an object" in home page

🪜 Steps To Reproduce

Home Page or Click Home Button

🤔 Expected behavior

Open Home page like Github

📸 Assets

image

0x5bfa commented 1 year ago

@M7MDE7EGAZY Please click "see stack trace" and paste them on this issue page.

arihant2math commented 1 year ago

I have the same issue, I have uploaded the log: Log20220911.log

Stack trace

   at System.Collections.Generic.List`1.get_Item(Int32) + 0x37
   at System.Linq.Enumerable.ElementAt[TSource](IEnumerable`1, Int32) + 0xb2
   at FluentHub.Octokit.Queries.Users.NotificationQueries.Map(List`1, IReadOnlyList`1) + 0x1c5
   at FluentHub.Octokit.Queries.Users.NotificationQueries.<GetAllAsync>d__0.MoveNext() + 0xc54
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
   at FluentHub.Uwp.ViewModels.Home.UserHomeViewModel.<LoadHomeContentsAsync>d__25.MoveNext() + 0x36b
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb
   at FluentHub.Uwp.ViewModels.Home.UserHomeViewModel.<LoadUserHomePageAsync>d__24.MoveNext() + 0x1e0
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x21
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0x70
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x38
   at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task) + 0x17
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult() + 0xb
   at Microsoft.Toolkit.Mvvm.ComponentModel.ObservableObject.<>c__DisplayClass20_0`1.<<SetPropertyAndNotifyOnCompletion>g__MonitorTask|0>d.MoveNext() + 0xab
arihant2math commented 1 year ago

This also happens on the notifications page.

Lamparter commented 1 year ago

Hmmm..

0x5bfa commented 1 year ago

Then, this issue is notification querying error.

arihant2math commented 1 year ago

I think it is coming from the loop on line 115 at Octokit.Queries.Users.NotificationQueries I'm trying to further debug the issue.