Don't crash on null conditional block
TRAC #11871
Signed-off-by: Shannon Woods
Signed-off-by: Daniel Koch

Author:    Nicolas Capens

git-svn-id: https://angleproject.googlecode.com/svn/trunk@156 736b8ea6-26fd-11df-bfd4-992fa37f6226
diff --git a/src/compiler/OutputHLSL.cpp b/src/compiler/OutputHLSL.cpp
index 30168f9..31e91a3 100644
--- a/src/compiler/OutputHLSL.cpp
+++ b/src/compiler/OutputHLSL.cpp
@@ -1242,7 +1242,10 @@
         out << ")\n"
                "{\n";
 
-        node->getTrueBlock()->traverse(this);
+        if (node->getTrueBlock())
+        {
+            node->getTrueBlock()->traverse(this);
+        }
 
         out << ";}\n";