Skip to content
New issue

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

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

Already on GitHub? # to your account

[iOS] Object reference not set to an instance of an object at XF.Material.iOS.Renderers.MaterialButtonRenderer #58

Closed
contrix09 opened this issue Feb 1, 2019 · 3 comments
Labels
bug Something isn't working valid This issue/bug/feature request is valid

Comments

@contrix09
Copy link

Caused when the device changes orientation.

@contrix09 contrix09 added bug Something isn't working valid This issue/bug/feature request is valid labels Feb 1, 2019
@contrix09 contrix09 self-assigned this Feb 1, 2019
@SomValentino
Copy link

Any solution to this issue as I am still getting the same error . See my stack trace below:

at XF.Material.iOS.Renderers.MaterialButtonRenderer.Control_Released (System.Object sender, System.EventArgs e) [0x0005c] in /Users/vsts/agent/2.148.2/work/1/s/XF.Material/XF.Material.iOS/Renderers/MaterialButtonRenderer.cs:167 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.14.0.114/src/Xamarin.iOS/mcs/class/referencesource/mscorlib/system/runtime/compilerservices/AsyncMethodBuilder.cs:1021 at Foundation.NSAsyncSynchronizationContextDispatcher.Apply () [0x00000] in /Library/Frameworks/Xamarin.iOS.framework/Versions/12.14.0.114/src/Xamarin.iOS/Foundation/NSAction.cs:178

@contrix09 contrix09 removed their assignment Sep 30, 2019
@Samidolla
Copy link

at XF.Material.Forms.Material.GetResource[T] (System.String key) [0x00000] in C:\Users\mhvdi\Documents\OpenSource\XF-Material-Library\XF.Material\Material.cs:57
at XF.Material.Forms.UI.MaterialLabel.OnTypeScaleChanged (XF.Material.Forms.Resources.Typography.MaterialTypeScale materialTypeScale) [0x00024] in C:\Users\mhvdi\Documents\OpenSource\XF-Material-Library\XF.Material\UI\MaterialLabel.cs:76
at XF.Material.Forms.UI.MaterialLabel.OnPropertyChanged (System.String propertyName) [0x00049] in C:\Users\mhvdi\Documents\OpenSource\XF-Material-Library\XF.Material\UI\MaterialLabel.cs:50
at Xamarin.Forms.BindableObject.SetValueActual (Xamarin.Forms.BindableProperty property, Xamarin.Forms.BindableObject+BindablePropertyContext context, System.Object value, System.Boolean currentlyApplying, Xamarin.Forms.Internals.SetValueFlags attributes, System.Boolean silent) [0x00114] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:510
at Xamarin.Forms.BindableObject.SetValueCore (Xamarin.Forms.BindableProperty property, System.Object value, Xamarin.Forms.Internals.SetValueFlags attributes, Xamarin.Forms.BindableObject+SetValuePrivateFlags privateAttributes) [0x00173] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:446
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value, System.Boolean fromStyle, System.Boolean checkAccess) [0x0004d] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:374
at Xamarin.Forms.BindableObject.SetValue (Xamarin.Forms.BindableProperty property, System.Object value) [0x00000] in D:\a\1\s\Xamarin.Forms.Core\BindableObject.cs:349
at XF.Material.Forms.UI.MaterialLabel.set_TypeScale (XF.Material.Forms.Resources.Typography.MaterialTypeScale value) [0x00000] in C:\Users\mhvdi\Documents\OpenSource\XF-Material-Library\XF.Material\UI\MaterialLabel.cs:40
at MyUni.View.ResetPassword..ctor () [0x00059] in /Users/samidolla/Desktop/Work_Projects/MyUni/MyUni/View/ResetPassword.cs:27
at MyUni.App..ctor () [0x0000f] in /Users/samidolla/Desktop/Work_Projects/MyUni/MyUni/App.xaml.cs:15
at MyUni.iOS.AppDelegate.FinishedLaunching (UIKit.UIApplication app, Foundation.NSDictionary options) [0x00047] in /Users/samidolla/Desktop/Work_Projects/MyUni/MyUni.iOS/AppDelegate.cs:36
at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr)
at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:86
at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Users/builder/azdo/_work/1/s/xamarin-macios/src/UIKit/UIApplication.cs:65
at MyUni.iOS.Application.Main (System.String[] args) [0x00001] in /Users/samidolla/Desktop/Work_Projects/MyUni/MyUni.iOS/Main.cs:17

@Samidolla
Copy link

thats the error im getting (stacktrace)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working valid This issue/bug/feature request is valid
Projects
None yet
Development

No branches or pull requests

2 participants