praeclarum / praeclarum/sqlite-net

NullReferenceException in apps on Windows 8 RTM

Open
#91 9 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
4.5k
Forks
1.4k
PR merge metrics
No merged PRs in 30d

Description

I migrate an app from windows 8 RP to RTM.

I didn't have problem on RP but on RTM SQLite throw very often an exception when my app launch.

Here is the exception details:

  System.NullReferenceException was unhandled by user code
  HResult=-2147467261
  Message=Object reference not set to an instance of an object.
  Source=mscorlib
  StackTrace:
       at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
       at System.Collections.Generic.Dictionary`2.set_Item(TKey key, TValue value)
       at SQLite.SQLiteConnection.GetMapping(Type type) in \SQLite.cs:line 234
       at SQLite.SQLiteConnection.CreateTable(Type ty) in \SQLite.cs:line 308
       at SQLite.SQLiteAsyncConnection.<>c__DisplayClass1.<CreateTablesAsync>b__0() in \SQLiteAsync.cs:line 

94
       at System.Threading.Tasks.Task`1.InnerInvoke()
       at System.Threading.Tasks.Task.Execute()

Can you investigate on it?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Windows 8 RTM launch failure and read SQLite.cs around line 234 in SQLiteConnection.GetMapping and line 308 in CreateTable. Trace the call from SQLiteAsync.cs's CreateTablesAsync entry point and determine why the dictionary receives a null value; done means the reported NullReferenceException no longer occurs during table creation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, sqlite
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.