src/glCompiler.cc

changeset 772
e117509e1b51
parent 770
b04c1e6ca1fb
child 784
f82ab4d3c7b4
--- a/src/glCompiler.cc	Fri May 16 21:59:03 2014 +0300
+++ b/src/glCompiler.cc	Sat May 17 02:00:02 2014 +0300
@@ -311,7 +311,7 @@
 {
 //	print ("Compile %1\n", g_objectOrigins[obj]);
 
-	if (obj == null || obj->document()->isImplicit())
+	if (obj == null || obj->document() == null || obj->document()->isImplicit())
 		return;
 
 	ObjectVBOInfo info;

mercurial