Author: toshok
Date: 2008-01-17 13:21:49 -0500 (Thu, 17 Jan 2008)
New Revision: 93182
Modified:
trunk/moon/plugin/plugin.cpp
Log:
don't crash if we happen to right click->Properties before the plugin is done
loading
Modified: trunk/moon/plugin/plugin.cpp
===================================================================
--- trunk/moon/plugin/plugin.cpp 2008-01-17 18:11:45 UTC (rev 93181)
+++ trunk/moon/plugin/plugin.cpp 2008-01-17 18:21:49 UTC (rev 93182)
@@ -223,7 +223,7 @@
snprintf (buffer, sizeof (buffer), "%dpx", getActualHeight ());
table_add (table, buffer, 1, row++);
table_add (table, background, 1, row++);
- table_add (table, xaml_loader->IsManaged () ? "1.1 (XAML + Managed
Code)" : "1.0 (Pure XAML)", 1, row++);
+ table_add (table, xaml_loader == NULL ? "(Unknown)" :
(xaml_loader->IsManaged () ? "1.1 (XAML + Managed Code)" : "1.0 (Pure XAML)"),
1, row++);
table_add (table, windowless ? "yes" : "no", 1, row++);
// Runtime debug options
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches