c# - Xamarin App crashes on Reopen NullReference -


i have app on xamarin, works fine, if press button, move main menu hides in app stack, when open app stack crashes nullreference

06-10 15:59:57.363 i/monodroid(14891): unhandled exception: 06-10 15:59:57.363 i/monodroid(14891): system.nullreferenceexception: object reference not set instance of object 06-10 15:59:57.363 i/monodroid(14891): @ xamarin.forms.platform.android.formsapplicationactivity.onprepareoptionsmenu (android.views.imenu) <il 0x00007, 0x00050> 06-10 15:59:57.363 i/monodroid(14891): @ android.app.activity.n_onprepareoptionsmenu_landroid_view_menu_ (intptr,intptr,intptr) [0x00011] in /users/builder/data/lanes/monodroid-mavericks-monodroid-5.1-series/d419c934/source/monodroid/src/mono.android/platforms/android-21/src/generated/android.app.activity.cs:4151 06-10 15:59:57.363 i/monodroid(14891): @ (wrapper dynamic-method) object.87f976f0-8c0f-4463-92f4-c8ed92b6336d (intptr,intptr,intptr) <il 0x00017, 0x0004b> 06-10 15:59:57.383 d/androidruntime(14891): shutting down vm 06-10 15:59:57.383 w/dalvikvm(14891): threadid=1: thread exiting uncaught exception (group=0x41b66c08) unhandled exception occured. 

any ideas helpful, stuck long

my main activity code: http://pastebin.com/d9g77mjg

we figured out issue. problem 3rd party library isn't officially supported (xlabs). have own dependency service , greag re-registering things causing exception being gobbled loadapplication never loaded.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -