<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic NullReferenceException in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/NullReferenceException/m-p/587081#M17936</link>
    <description>&lt;P&gt;A friend and I are working with some Visual C# code and we keep getting the&amp;nbsp;&lt;SPAN&gt;message "System.NullReferenceException: Object reference not set to an instance of an object." How do we fix it? The code is attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;[Activity(Label = "@string/app_name", Theme = "@style/AppTheme", MainLauncher = true)]
    public class MainActivity : AppCompatActivity
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.homeScreen);
            Button findAirport = FindViewById&amp;lt;Button&amp;gt;(Resource.Id.findAirport);
            Button findPrevious = FindViewById&amp;lt;Button&amp;gt;(Resource.Id.findPrevious);
            Button goHome = FindViewById&amp;lt;Button&amp;gt;(Resource.Id.homeButton);
            findAirport.Click+= (button, e) =&amp;gt;
            SetContentView(Resource.Layout.findNew);
            findPrevious.Click += (button, e) =&amp;gt;
            SetContentView(Resource.Layout.loadPrevious);
            goHome.Click += (button, e) =&amp;gt;
            SetContentView(Resource.Layout.homeScreen);&lt;/PRE&gt;</description>
    <pubDate>Mon, 17 Dec 2018 18:43:28 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-12-17T18:43:28Z</dc:date>
    <item>
      <title>NullReferenceException</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/NullReferenceException/m-p/587081#M17936</link>
      <description>&lt;P&gt;A friend and I are working with some Visual C# code and we keep getting the&amp;nbsp;&lt;SPAN&gt;message "System.NullReferenceException: Object reference not set to an instance of an object." How do we fix it? The code is attached.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;[Activity(Label = "@string/app_name", Theme = "@style/AppTheme", MainLauncher = true)]
    public class MainActivity : AppCompatActivity
    {
        protected override void OnCreate(Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            // Set our view from the "main" layout resource
            SetContentView(Resource.Layout.homeScreen);
            Button findAirport = FindViewById&amp;lt;Button&amp;gt;(Resource.Id.findAirport);
            Button findPrevious = FindViewById&amp;lt;Button&amp;gt;(Resource.Id.findPrevious);
            Button goHome = FindViewById&amp;lt;Button&amp;gt;(Resource.Id.homeButton);
            findAirport.Click+= (button, e) =&amp;gt;
            SetContentView(Resource.Layout.findNew);
            findPrevious.Click += (button, e) =&amp;gt;
            SetContentView(Resource.Layout.loadPrevious);
            goHome.Click += (button, e) =&amp;gt;
            SetContentView(Resource.Layout.homeScreen);&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Dec 2018 18:43:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/NullReferenceException/m-p/587081#M17936</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-12-17T18:43:28Z</dc:date>
    </item>
  </channel>
</rss>

