SQLite Forum

How to retrieve the last encountered error
No.  The error messages you listed, mentioning 'System.NullReferenceException' and "Object reference not set to an instance of an object." are errors from c#, the programming language you're using, not from SQLite.  SQLite doesn't have exceptions or objects.

There's a good chance there's an error in your programming somewhere.