Skip to content

OnCreateView Null Reference Exception with Developer Options "Don't Keep Activities" #2

@benhysell

Description

@benhysell

Steps to Reproduce

  1. Turn on 'Don't keep activities' on android device under developer options menu
  2. Run MvxSample.Droid on device
  3. Select Friends from the slide out menu
  4. Pick a friend, monkey picture is shown
  5. Click on the Money's name to return to the view with all of the friends being shown
  6. Crash

The ViewModel.FriendsAllViewModel is null in FriendsView.cs line 51.

I've been chasing a similar issue in my code using this project as a base, http://stackoverflow.com/questions/24145410/mvvmcross-android-null-reference-for-viewmodel-when-reloading-fragments

Not sure if this is a mvvmcross issue or an implementation with the navDrawer. Thoughts?

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