Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Fixed Null-pointer exception #865

Merged
merged 2 commits into from
Jan 16, 2015
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions source/Glimpse.Ado/Model/ConnectionMetadata.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,15 @@ public void RegiserTransactionStart(TransactionMetadata transaction)
Transactions.Add(transaction.Id, transaction);

var command = Commands.FirstOrDefault(x => x.Value.Offset >= transaction.Offset);
command.Value.HeadTransaction = transaction;
if(command.Value != null)
command.Value.HeadTransaction = transaction;
}

public void RegiserTransactionEnd(TransactionMetadata transaction)
{
var command = Commands.LastOrDefault(x => x.Value.Offset <= transaction.Offset + transaction.Duration);
command.Value.TailTransaction = transaction;
if(command.Value != null)
command.Value.TailTransaction = transaction;
}
}
}
6 changes: 3 additions & 3 deletions source/Glimpse.Ado/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("f2d6bd18-342c-4ae1-a63a-252265c5c16d")]

[assembly: AssemblyVersion("1.7.3")]
[assembly: AssemblyFileVersion("1.7.3")]
[assembly: AssemblyInformationalVersion("1.7.3")] // Used to specify the NuGet version number at build time
[assembly: AssemblyVersion("1.7.4")]
[assembly: AssemblyFileVersion("1.7.4")]
[assembly: AssemblyInformationalVersion("1.7.4")] // Used to specify the NuGet version number at build time

[assembly: CLSCompliant(true)]
[assembly: InternalsVisibleTo("Glimpse.Test.Ado")]
Expand Down