After upgrading to a new STABLE version 18.104.22.168 my project (based on MvvmCross) went nuts with Null pointer exceptions. It seems that any code with strict casting produces the exception in runtime:
where myVariable is null at the moment. The walk around is to use
myVariable as MyType;
But this is totally not worth it in scope of the big project.
MvvmCross applied a quick solution for some places in there Framework https://github.com/slodge/MvvmCross/issues/418, but again it doesn't work for everything else in my project.
Not sure I understand. That above pattern is used everywhere inside our code (both the BCL on monotouch.dll) and it works fine in our test suites, applications and samples.
Please attach a self-contained test case showing the issue and all the software versions being used.
The easiest way to get exact version information is to use the "Xamarin Studio" menu, "About Xamarin Studio" item, "Show Details" button and copy/paste the version informations (you can use the "Copy Information" button).
Yes, you are right. My description is wrong since it indeed works for the example I mentioned but it doesn't work in other cases that I am trying to extract as a separate example now.
BTW is there a quick way to get back previous version in Stable branch? I am really low on time solving this random exceptions and I need to get back working environment ASAP :-(
Please read the link https://github.com/slodge/MvvmCross/issues/418. It seems your team might be aware about the problem according to Slodge's mentions.
Version 4.0.12 (build 3)
Installation UUID: 2092999b-cea1-4240-8a64-5170c0a5c514
Mono 3.2.0 ((no/7c7fcc7)
Package version: 302000000
Apple Developer Tools
Xcode 4.6.3 (2068)
Xamarin.Mac: Not Installed
Version: 22.214.171.124 (Indie Edition)
Build date: 2013-26-08 14:21:47-0400
Release ID: 400120003
Git revision: 593d7acb1cb78ceeeb482d5133cf1fe514467e39
Build date: 2013-08-07 20:30:53+0000
Xamarin addins: 25a0858b281923e666b09259ad4746b774e0a873
Mac OS X 10.8.4
Darwin silverbox.local 12.4.0 Darwin Kernel Version 12.4.0
Wed May 1 17:57:12 PDT 2013
The thread from forums http://forums.xamarin.com/discussion/7546/latest-xamarin-ios-update-breaks-all-mvvmcross-projects
You can download past releases from your account
Do you remember if the NRE occured:
* only occured on the simulator ?
* did the same happen on devices ?
I'm assuming this is a duplicate of #14552. If you can still duplicate this with 6.4.5+ please re-open and attach a test case.
*** This bug has been marked as a duplicate of bug 14552 ***
Notice (2018-05-21): bugzilla.xamarin.com will be
switching to read-only mode on Thursday, 2018-05-25 22:00 UTC.
Please join us on
Visual Studio Developer Community and
GitHub to continue tracking
issues. Bugzilla will remain available for reference in read-only mode.
We will continue to work on open Bugzilla bugs and copy them to the new
locations as needed for follow-up. The See Also field
on each Bugzilla bug will be updated with a link to its new location
After Bugzilla is read-only, if you have new information to add for a
bug that does not yet have a matching issue on Developer Community or
GitHub, you can create a follow-up issue in the new location. Copy and
paste the title and description from this bug, and then add your new
details. You can get a pre-formatted version of the title and
In special cases you might also want the comments:
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.