Hello. I am a new Xamarin Forms programmer, and in fact a new-ish programmer. I am trying to save some preferences in an app using a local database with SQLite. I did it with the profile details and everything worked fine. I am trying this with the some preferences and when I try to get a preference in an "if" statement or assign something to it or assign it to something else it is throwing the System.NullReferenceException: Object reference not set to an instance of an object exception. I started with bools and then changed to ints and still nothing works. Any ideas?