Skip to content

Commit

Permalink
Fixed a bug in initialisation auto copying where missing properties w…
Browse files Browse the repository at this point in the history
…ould cause a nullreferenceexception

Signed-off-by: Martin Evans <martindevans@gmail.com>
  • Loading branch information
martindevans committed Feb 24, 2014
1 parent 57ae177 commit 42bb91c
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Myre/Myre.Debugging.UI/Properties/AssemblyInfo.cs
Expand Up @@ -30,4 +30,4 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.1.1")]
[assembly: AssemblyVersion("1.1.2")]
2 changes: 1 addition & 1 deletion Myre/Myre.Debugging/Properties/AssemblyInfo.cs
Expand Up @@ -30,4 +30,4 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.1.1")]
[assembly: AssemblyVersion("1.1.2")]
2 changes: 1 addition & 1 deletion Myre/Myre.Entities/Entity.cs
Expand Up @@ -234,7 +234,7 @@ internal void Initialise(INamedDataProvider initialisationData)
foreach (var item in initialisationData)
{
var prop = GetProperty(item.Key);
if (prop.Type.IsAssignableFrom(item.Value.Type))
if (prop != null && prop.Type.IsAssignableFrom(item.Value.Type))
prop.Value = item.Value.Value;
}
}
Expand Down
2 changes: 1 addition & 1 deletion Myre/Myre.Entities/Properties/AssemblyInfo.cs
Expand Up @@ -30,4 +30,4 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.2.3")]
[assembly: AssemblyVersion("1.2.4")]
2 changes: 1 addition & 1 deletion Myre/Myre.Graphics.Pipeline/Properties/AssemblyInfo.cs
Expand Up @@ -28,4 +28,4 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.1")]
[assembly: AssemblyVersion("1.1.1")]
2 changes: 1 addition & 1 deletion Myre/Myre.Graphics/Properties/AssemblyInfo.cs
Expand Up @@ -30,4 +30,4 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.1.2")]
[assembly: AssemblyVersion("1.1.3")]
2 changes: 1 addition & 1 deletion Myre/Myre.StateManagement/Properties/AssemblyInfo.cs
Expand Up @@ -30,4 +30,4 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.1.1")]
[assembly: AssemblyVersion("1.1.2")]
2 changes: 1 addition & 1 deletion Myre/Myre.UI/Properties/AssemblyInfo.cs
Expand Up @@ -30,4 +30,4 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.1.1")]
[assembly: AssemblyVersion("1.1.2")]
2 changes: 1 addition & 1 deletion Myre/Myre/Properties/AssemblyInfo.cs
Expand Up @@ -27,6 +27,6 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.5")]
[assembly: AssemblyVersion("1.0.1")]

[assembly: System.Runtime.CompilerServices.InternalsVisibleTo("MyreTests")]

0 comments on commit 42bb91c

Please sign in to comment.