fixed issue #989

This commit is contained in:
Glatzemann 2012-08-30 16:38:23 +00:00
parent 4e3ae6867b
commit 778f52b4a1

View File

@ -56,7 +56,14 @@ namespace ANX.Framework.NonXNA
{
get
{
return Instance.Name;
if (instance != null)
{
return instance.Name;
}
else
{
return "*** no instance of AddIn *** (" + creatorType.FullName + ")";
}
}
}
@ -64,9 +71,9 @@ namespace ANX.Framework.NonXNA
{
get
{
if (Instance != null)
if (instance != null)
{
return Instance.Priority;
return instance.Priority;
}
else
{
@ -93,6 +100,7 @@ namespace ANX.Framework.NonXNA
get
{
CreateInstanceIfPossible();
return instance;
}
}