Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting Exception System.ArgumentNullException. #2952

Closed
1 task
Naveen9453 opened this issue Jun 12, 2018 · 8 comments
Closed
1 task

Getting Exception System.ArgumentNullException. #2952

Naveen9453 opened this issue Jun 12, 2018 · 8 comments
Labels
p/ios iOS platform t/bug Bug type
Milestone

Comments

@Naveen9453
Copy link

Naveen9453 commented Jun 12, 2018

Steps to reproduce 📜

1.Created Project using MvvmCross and setup iOS project, Done changes in AppDelegate, Added ViewModel Class to Core part and Added App.cs file,Added LinkerPleaseInclude.cs file.

2.Created All changes as per this link https://github.com/nickrandolph/MvxPlus1DaysOfMvvmCross

3.Getting exception in ViewController while set.Apply() Line in ViewDidLoad method of ViewController.

       var set = this.CreateBindingSet<LoginViewController, LoginViewModel>();
        set.Bind(valueLbl).To(vm => vm.Value);
        set.Bind(entryTxtField).To(vm => vm.Value);
        set.Apply();

Expected behavior 🤔

It should run without exception and should work with data binding from viewmodel property.

Actual behavior 🐛

It Throwing System.ArgumentNullException.
Please see attached png file of exception.

Configuration 🔧

Version: 6.1.x

Platform:

  • 📱 iOS

screen shot 2018-06-12 at 12 35 30 pm

@nickrandolph
Copy link
Contributor

Hi @Naveen9453 would you be able to try to reproduce this in the playground sample and issue a PR so that we can investigate?

@Naveen9453
Copy link
Author

Hi @nickrandolph I am running your sample from this link https://github.com/nickrandolph/MvxPlus1DaysOfMvvmCross and getting same exception

screen shot 2018-06-12 at 1 12 35 pm

@nickrandolph
Copy link
Contributor

Sorry I meant the playground sample that's included within the mvvmcross source code (https://github.com/MvvmCross/MvvmCross/tree/develop/Projects/Playground)

@Naveen9453
Copy link
Author

screen shot 2018-06-12 at 2 15 13 pm
I have cloned the projects from below link: https://github.com/MvvmCross/MvvmCross/tree/develop/Projects/Playground
still getting this errors. I'm not able to build project from this link.

@nickrandolph
Copy link
Contributor

@martijn00 @Cheesebaron is the mvvmcross solution buildable on VS Mac yet?

@Cheesebaron
Copy link
Member

@nickrandolph the build script will most likely run fine. However, not sure how well VSfM handles the solution. We are very much on the bleeding edge here.

@nickrandolph
Copy link
Contributor

@Naveen9453 are you able to build mvvmcross using VS (PC not Mac) and submit a PR demonstrating the issue in the playground?

@jamespettigrew
Copy link
Contributor

jamespettigrew commented Jun 18, 2018

I'm 99% sure this issue can be solved by updating LinkerPleaseInclude (see this issue).

@Cheesebaron @Naveen9453, I think this can be closed. Naveen can reopen if the solution I linked is not helpful.

@nmilcoff nmilcoff added t/bug Bug type p/ios iOS platform labels Sep 15, 2018
@nmilcoff nmilcoff added this to the 6.2.0 milestone Sep 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
p/ios iOS platform t/bug Bug type
Development

No branches or pull requests

6 participants