Skip to content
Permalink
Browse files

Merge pull request #865 from sorenml/master

Fixed Null-pointer exception
  • Loading branch information...
avanderhoorn committed Jan 16, 2015
2 parents ba5e7ba + 1496986 commit c0bf751bac840ba22b613620367166fac8462392
Showing with 7 additions and 5 deletions.
  1. +4 −2 source/Glimpse.Ado/Model/ConnectionMetadata.cs
  2. +3 −3 source/Glimpse.Ado/Properties/AssemblyInfo.cs
@@ -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;
}
}
}
@@ -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")]

0 comments on commit c0bf751

Please sign in to comment.
You can’t perform that action at this time.