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

Object reference not set to an instance of an object error #102

Closed
kevinvella opened this issue Mar 22, 2019 · 5 comments
Closed

Object reference not set to an instance of an object error #102

kevinvella opened this issue Mar 22, 2019 · 5 comments
Assignees
Labels
bug Something isn't working target-xamarin

Comments

@kevinvella
Copy link

Describe the bug
When i remove the Xamarin.Forms.InputKit package the application works.

To Reproduce
Trying to reproduce it in a sample app

Expected behavior
Does not crash

Smartphone (please complete the following information):

  • Device: iPhone XS Max
  • OS: iOS 12.1
  • Version 12.1

Xamarin Forms v3.6.0.264807
Xamarin.Forms.InputKit v3.0.2
Xamarin Forms Material v3.6.0.264807

Additional context
" at Xamarin.Forms.VisualStateManager.GoToState (Xamarin.Forms.VisualElement visualElement, System.String name) [0x00000] in D:\\a\\1\\s\\Xamarin.Forms.Core\\VisualStateManager.cs:51 \n at Plugin.InputKit.Platforms.iOS.StackLayoutWithVisualStatesRenderer.TouchesCancelled (Foundation.NSSet touches, UIKit.UIEvent evt) [0x00006] in <3af430ba27d545b5bdad56c17d32cb4e>:0 \n at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)\n at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS/UIKit/UIApplication.cs:79 \n at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0002c] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.2.1.16/src/Xamarin.iOS/UIKit/UIApplication.cs:63 \n at Nutrivitas.Mobile.iOS.Application.Main (System.String[] args) [0x00001] in

I know this issue is a little vague. But i am trying to understand how this is being triggered myself.

@enisn enisn self-assigned this Mar 22, 2019
@enisn enisn added the bug Something isn't working label Mar 22, 2019
@enisn
Copy link
Owner

enisn commented Mar 23, 2019

Do you have a CustomRenderer which exported to StackLayout in your iOS project ?
I think two of renderers are conflicted from InputKit and yours.

Commit 01229bb will solve if problem this is.

@kevinvella
Copy link
Author

I have custom renderers for pickers, and buttons.
And have a custom date picker based on grid and stack layout

I was not able to replicate it in a sample using the custom date picker only.
InputKitException.zip

@kevinvella
Copy link
Author

Hi,
When will the update be available to nuget?

@enisn
Copy link
Owner

enisn commented Mar 25, 2019

@kevinvella

Can you try new version v3.0.3

That problem should be fixed at

@kevinvella
Copy link
Author

@enisn

Thanks. Confirming that the issue is fixed with this update.
Closing this issue. Thanks very much :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working target-xamarin
Projects
None yet
Development

No branches or pull requests

2 participants