Skip to content
This repository was archived by the owner on Sep 27, 2020. It is now read-only.
This repository was archived by the owner on Sep 27, 2020. It is now read-only.

Lots of null reference errors on first load #13

@mtlynch

Description

@mtlynch

I cleared my AppData\Local\Twinder folder, and rebuilt from 533fd47 but after I complete the FB auth flow, I get a bunch of null reference exceptions and can't run Twinder.

System.NullReferenceException was unhandled by user code
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Twinder
  StackTrace:
       at Twinder.ViewModel.MatchListFilterViewModel.SortMatchList() in C:\tmp\twinder\ViewModel\MatchListFilterViewModel.cs:line 333
       at Twinder.ViewModel.MatchListFilterViewModel.set_SelectedSorting(SortingOptionsEnum value) in C:\tmp\twinder\ViewModel\MatchListFilterViewModel.cs:line 252
  InnerException: 
System.NullReferenceException was unhandled by user code
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Twinder
  StackTrace:
       at Twinder.ViewModel.MatchListFilterViewModel.UpdateStatusBar() in C:\tmp\twinder\ViewModel\MatchListFilterViewModel.cs:line 522
       at Twinder.ViewModel.MatchListFilterViewModel.set_SelectedTab(TabItem value) in C:\tmp\twinder\ViewModel\MatchListFilterViewModel.cs:line 30
  InnerException: 
System.NullReferenceException was unhandled by user code
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=Twinder
  StackTrace:
       at Twinder.ViewModel.MatchListFilterViewModel.ApplyFilter(Object sender, FilterEventArgs e) in C:\tmp\twinder\ViewModel\MatchListFilterViewModel.cs:line 376
       at System.Windows.Data.CollectionViewSource.WrapFilter(Object item)
       at System.Windows.Data.CollectionViewSource.FilterStub.WrapFilter(Object item)
       at System.Windows.Data.ListCollectionView.PrepareLocalArray()
       at System.Windows.Data.ListCollectionView.RefreshOverride()
       at System.Windows.Data.CollectionView.RefreshInternal()
       at System.Windows.Data.CollectionView.Refresh()
       at System.Windows.Data.CollectionView.EndDefer()
       at System.Windows.Data.CollectionView.DeferHelper.Dispose()
       at System.Windows.Data.CollectionViewSource.ApplyPropertiesToView(ICollectionView view)
       at System.Windows.Data.CollectionViewSource.OnForwardedPropertyChanged()
       at System.Windows.Data.CollectionViewSource.add_Filter(FilterEventHandler value)
       at Twinder.ViewModel.MainViewModel.set_MatchList(ObservableCollection`1 value) in C:\tmp\twinder\ViewModel\MainViewModel.cs:line 46
       at Twinder.ViewModel.MainViewModel.<GetMatches>d__180.MoveNext() in C:\tmp\twinder\ViewModel\MainViewModel.cs:line 472
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at Twinder.ViewModel.MainViewModel.<StartInitialize>d__178.MoveNext() in C:\tmp\twinder\ViewModel\MainViewModel.cs:line 339
  InnerException: 
Object reference not set to an instance of an object.
   at Twinder.ViewModel.MatchListFilterViewModel.ApplyFilter(Object sender, FilterEventArgs e) in C:\tmp\twinder\ViewModel\MatchListFilterViewModel.cs:line 376
   at System.Windows.Data.CollectionViewSource.WrapFilter(Object item)
   at System.Windows.Data.CollectionViewSource.FilterStub.WrapFilter(Object item)
   at System.Windows.Data.ListCollectionView.PrepareLocalArray()
   at System.Windows.Data.ListCollectionView.RefreshOverride()
   at System.Windows.Data.CollectionView.RefreshInternal()
   at System.Windows.Data.CollectionView.Refresh()
   at System.Windows.Data.CollectionView.EndDefer()
   at System.Windows.Data.CollectionView.DeferHelper.Dispose()
   at System.Windows.Data.CollectionViewSource.ApplyPropertiesToView(ICollectionView view)
   at System.Windows.Data.CollectionViewSource.OnForwardedPropertyChanged()
   at System.Windows.Data.CollectionViewSource.add_Filter(FilterEventHandler value)
   at Twinder.ViewModel.MainViewModel.set_MatchList(ObservableCollection`1 value) in C:\tmp\twinder\ViewModel\MainViewModel.cs:line 46
   at Twinder.ViewModel.MainViewModel.<GetMatches>d__180.MoveNext() in C:\tmp\twinder\ViewModel\MainViewModel.cs:line 472
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
   at Twinder.ViewModel.MainViewModel.<StartInitialize>d__178.MoveNext() in C:\tmp\twinder\ViewModel\MainViewModel.cs:line 339
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions