Author: rolf
Date: 2007-12-05 12:16:27 -0500 (Wed, 05 Dec 2007)
New Revision: 90774
Modified:
trunk/moon/test/harness/xaml2png.cpp
Log:
Don't crash if the xaml loading failed.
Modified: trunk/moon/test/harness/xaml2png.cpp
===================================================================
--- trunk/moon/test/harness/xaml2png.cpp 2007-12-05 16:56:45 UTC (rev
90773)
+++ trunk/moon/test/harness/xaml2png.cpp 2007-12-05 17:16:27 UTC (rev
90774)
@@ -130,6 +130,11 @@
Canvas *canvas = (Canvas*)xaml_create_from_file (loader, xaml_file,
true, &type);
delete loader;
+ if (canvas == NULL) {
+ delete s;
+ return;
+ }
+
s->Attach (canvas);
int width = TEST_WIDTH;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches