Bug 30589 - Attempt to invoke virtual method 'boolean android.support.v4.widget.DrawerLayout.isDrawerOpen(int)'
Summary: Attempt to invoke virtual method 'boolean android.support.v4.widget.DrawerLay...
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 1.3.1
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2015-05-29 11:08 UTC by uwantfries
Modified: 2016-04-09 00:33 UTC (History)
2 users (show)

Tags: masterdetailpage
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED NORESPONSE

Description uwantfries 2015-05-29 11:08:06 UTC
Getting this from Xamarin.Forms as reported by Xamarin.Insights
Possibly something to do with lollipop & Termination as seems to occur for newer machines?

Crashed 4m3s
Crashed 4m3s
Terminated 3m58s
Background 3m56s
UnTag 3m48s
Tag 3m48s
Tag 3m43s
VoteView 3m21s
Started 3m19s
Started 2m51s
Crashed 2m49s
Terminated 1m21s
Background 1m20s
UnTag 1m12s
Tag 1m12s
Tag 56s
VoteView 13s
RegisterView 10s
Started 7s
Terminated 1s
Background 0s
Session started


java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v4.widget.DrawerLayout.isDrawerOpen(int)' on a null object reference
	at android.support.v4.app.ActionBarDrawerToggle.syncState(ActionBarDrawerToggle.java:292)
	at ersv4.android.MainActivity.n_onCreate(Native Method)
	at ersv4.android.MainActivity.onCreate(MainActivity.java:51)
	at android.app.Activity.performCreate(Activity.java:5990)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
	at android.app.ActivityThread.access$800(ActivityThread.java:151)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5254)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
Comment 1 uwantfries 2015-05-29 11:11:05 UTC
Full stacktrace from XI

Java.Lang.RuntimeExceptionAttempt to invoke virtual method 'boolean android.support.v4.widget.DrawerLayout.isDrawerOpen(int)' on a null object reference

at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () <0x00028>
at Android.Runtime.JNIEnv.CallVoidMethod (intptr,intptr) <0x000a7>
at Android.Support.V4.App.ActionBarDrawerToggle.SyncState () <0x000cf>
at Xamarin.Forms.Platform.Android.Platform.UpdateMasterDetailToggle () <0x0028f>
at Xamarin.Forms.Platform.Android.Platform.UpdateActionBar () <0x0018b>
at Xamarin.Forms.Platform.Android.Platform.SetPage (Xamarin.Forms.Page) <0x002c7>
at Xamarin.Forms.Platform.Android.FormsApplicationActivity.InternalSetPage (Xamarin.Forms.Page) <0x00353>
at Xamarin.Forms.Platform.Android.FormsApplicationActivity.SetMainPage () <0x00023>
at Xamarin.Forms.Platform.Android.FormsApplicationActivity.LoadApplication (Xamarin.Forms.Application) <0x000e3>
at ersV4.Android.MainActivity.OnCreate (Android.OS.Bundle) <0x0010b>
at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intptr,intptr,intptr) <0x0006b>
at (wrapper dynamic-method) object.c5211943-9eb3-45bf-bf75-f2b99274b6bc (intptr,intptr,intptr) <0x0004b>

  --- End of managed exception stack trace ---
java.lang.NullPointerException: Attempt to invoke virtual method 'boolean android.support.v4.widget.DrawerLayout.isDrawerOpen(int)' on a null object reference
	at android.support.v4.app.ActionBarDrawerToggle.syncState(ActionBarDrawerToggle.java:292)
	at ersv4.android.MainActivity.n_onCreate(Native Method)
	at ersv4.android.MainActivity.onCreate(MainActivity.java:51)
	at android.app.Activity.performCreate(Activity.java:5990)
	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1106)
	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2278)
	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2387)
	at android.app.ActivityThread.access$800(ActivityThread.java:151)
	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1303)
	at android.os.Handler.dispatchMessage(Handler.java:102)
	at android.os.Looper.loop(Looper.java:135)
	at android.app.ActivityThread.main(ActivityThread.java:5254)
	at java.lang.reflect.Method.invoke(Native Method)
	at java.lang.reflect.Method.invoke(Method.java:372)
	at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)

InnerStackTraces[0]java.lang.NullPointerExceptionAttempt to invoke virtual method 'boolean android.support.v4.widget.DrawerLayout.isDrawerOpen(int)' on a null object reference
Properties
handle	

{}
{
  "getType": "System.IntPtr"
}

hResult	

-2146233088

targetSite	

Throw
Comment 2 Rui Marinho 2015-05-29 11:16:46 UTC
Thank you for taking the time to submit the bug. We tried to reproduce the issue you reported but were unable given the description. If you could please attach a reproduction to the bug by starting with a clean Xamarin.Forms project and adding just the code necessary to demonstrate the issue we would very much appreciate it. We monitor recently touched NEEDS INFO bugs so we’ll notice you attached the reproduction we’ll take it from there. 

Warm regards,
Xamarin Forms Team
Comment 3 Jason Smith [MSFT] 2016-04-09 00:33:58 UTC
Thank you for your bug report. As we have not received the information requested, we cannot properly triage your bug and are marking it resolved.

Warm regards,
Xamarin Forms Team