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

iOS _viewController NullReferenceException #3

Closed
petarkekez opened this issue Jan 10, 2018 · 3 comments
Closed

iOS _viewController NullReferenceException #3

petarkekez opened this issue Jan 10, 2018 · 3 comments
Labels

Comments

@petarkekez
Copy link

@petarkekez petarkekez commented Jan 10, 2018

I am getting null NullReferenceException.

The exception is thrown when the method PresentViewController is called on iOS Google manager.
When the method is called the field _viewController is null

If you can take a look it would be great.

Thank you in advance, and a great tutorial.

DanielCauser pushed a commit that referenced this issue Jan 10, 2018
@DanielCauser
Copy link
Owner

@DanielCauser DanielCauser commented Jan 10, 2018

Hey, I stupidly was not assigning the instance to the class property! Thank you for reporting this issue! Please test it out and see if it is fixed now @petarkekez !

Loading

@petarkekez
Copy link
Author

@petarkekez petarkekez commented Jan 10, 2018

Still not working. It should look like this:

while (vc.PresentedViewController != null)
{
    vc = vc.PresentedViewController;
}

_viewController = vc;

Loading

@petarkekez
Copy link
Author

@petarkekez petarkekez commented Jan 10, 2018

i tested it like that and it works

Loading

DanielCauser pushed a commit that referenced this issue Jan 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants