Bug 13000 - Getting NRE for iOS Mobile sample 'Tip Calc' on iPad
Summary: Getting NRE for iOS Mobile sample 'Tip Calc' on iPad
Alias: None
Product: iOS
Classification: Xamarin
Component: Samples ()
Version: 6.3.x
Hardware: PC Mac OS
: --- enhancement
Target Milestone: Future Cycle (TBD)
Assignee: GouriKumari
Depends on:
Reported: 2013-07-02 04:13 UTC by narayanp
Modified: 2013-07-11 07:29 UTC (History)
3 users (show)

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:

Description narayanp 2013-07-02 04:13:45 UTC
Steps to reproduce:
1. Open Mobile sample 'TipCalc'.
2. Debug or Run the application.

Actual Result: Application deployed and crashed on iPad while this is working fine on all simulators and iPhones.

Expected Result: Application should deployed and launched successfully on iPad.

Supplement info:
Crash log: https://gist.github.com/atin360/c1b9bd53d82a60031efb
iOS Device Log: https://gist.github.com/atin360/179d24c9a2c43e93f90d

Device info:
iPad1 version 5.1
iPad 2 version 7.0

Environment details:
All Mac
X.S 4.0.9(build 12)
mono 3.0.12
Xamarin.iOS 6.3.7-150

App info:

Regression Status:
NOT A REGRESSION: Same behavior happening with stable Xamarin.iOS
Comment 1 Sebastien Pouliot 2013-07-02 16:20:17 UTC
It's not a Xamarin.iOS bug but the sample is incomplete (and has been for the last two years).

-rw-r--r--  1 poupou  staff  10071 10 Feb  2012 MainViewController_iPad.xib
-rw-r--r--  1 poupou  staff  31688 10 Feb  2012 MainViewController_iPhone.xib

Since the _iPad.xib has no Total outlet then it returns null at runtime and makes the code throws.

A quick way to fix this would be to make it an iPhone only app.
Comment 3 Prashant manu 2013-07-11 07:29:55 UTC
Today we have checked this issue with following builds:

X.S 4.0.9(build 15)
Mono 3.1.1-2
Xamarin.iOS 6.3.8-2

Now we are seeing device target to iPod/iPhone and minimum version 4.0 in project option->IPhoneApplication. Now application launch successfully on iPad.

Changing the status to Verified.