C# - Spinner Adapter - Xamarin Android

Marcelo Abreu 1 Reputation point
2020-05-29T18:08:53.447+00:00

I have a problem with the adapter for my spinner that takes data from a SQLite Database and tries to show a bunch of strings as a result of the spinner.

It sends me an error message > "Exception of type 'Java.Lang.NullPointerException' was thrown." when I click on the spinner with the app running, if it wasn't in a try/catch the application would freeze.

Can someone help me find where the problem is ? Code below:

StackOverflow Question : https://stackoverflow.com/questions/62091904/c-sharp-spinner-adapter-xamarin-android

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
36,456 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dave Patrick 426.2K Reputation points MVP
    2020-05-29T18:14:58.407+00:00

    Xamarin is not currently supported here on QnA. I'd try asking for help in dedicated forums here.

    https://forums.xamarin.com/

    --please don't forget to Accept as answer if the reply is helpful--


    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows Server] Datacenter Management

    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees, and confers no rights.

    0 comments No comments