Hi,
This morning I discovered a crash in my app that I find a little too weird.
One minute the app was running finea after I had done a rebuild and deployed it.
I added a new class to my application, which I use from an activity rebuild,
deploy and suddenly the app starts crashing in MainActivity.cs raising a
java.lang.nullpointerexception. I did nothing there and the code seems to crash
on a static method call.
The following code is the piece that's causing the trouble:
// Initialize the component
InitializeComponent();
Window.SetFlags(WindowManagerFlags.Fullscreen, WindowManagerFlags.Fullscreen);
Log.Verbose("TEST", "Is User Signed in ? {0}", DeviceContext.Current.SignedIn);
Log.Verbose("TEST", "Can fed auth cookie utility be called? {0}",
FedAuthCookieUtility.ReadCookies());
// Load cookie when they are available
DeviceContext.Current.SignedIn = FedAuthCookieUtility.ReadCookies();
The original crash happened on DeviceContext.Current.SignedIn =
FedAuthCookieUtility.ReadCookies();
In order to find out which part was causing the problems, I added the log
statements. The first one gets through to the log and doesn't cause exceptions.
The second call however, causes an exception: java.lang.nullpointerexception
without any additional stacktrace or any data in the adb logcat.
Seems to me there's a problem with the Java code being generated for this, but
I'm not sure.
Anybody have an idea as to what might be happening here?
Kind regards,
Willem Meints
_______________________________________________
Monodroid mailing list
[email protected]
UNSUBSCRIBE INFORMATION:
http://lists.ximian.com/mailman/listinfo/monodroid