Permalink
Browse files

Fixing table mapping issue on Close

  • Loading branch information...
1 parent a4a8e4c commit 006724e4729a9e91e18cf8354e7e212af119a5ce @timheuer committed Apr 19, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 src/Callisto/Data/SQLite.cs
@@ -802,9 +802,12 @@ public void Close()
{
try
{
- foreach (var sqlInsertCommand in _mappings.Values)
+ if (_mappings != null)
{
- sqlInsertCommand.Dispose();
+ foreach (var sqlInsertCommand in _mappings.Values)
+ {
+ sqlInsertCommand.Dispose();
+ }
}
var r = SQLite3.Close(Handle);
if (r != SQLite3.Result.OK)

0 comments on commit 006724e

Please sign in to comment.