From 76fd28c25d07a6acb746be09a0eda4201fce892f Mon Sep 17 00:00:00 2001 From: Dan Eicher Date: Sat, 29 Dec 2012 20:16:21 +0000 Subject: [PATCH] Missing NULL check which crashes on opening the Text Editor without an active Text object --- source/blender/editors/space_text/text_format.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/blender/editors/space_text/text_format.c b/source/blender/editors/space_text/text_format.c index 9a52cacb1f9..294f94dd4b7 100644 --- a/source/blender/editors/space_text/text_format.c +++ b/source/blender/editors/space_text/text_format.c @@ -153,7 +153,7 @@ TextFormatType *ED_text_format_get(Text *text) * for now this function is more of a placeholder */ /* XXX, wrong, but OK for testing */ - if (BLI_testextensie(text->id.name + 2, ".osl")) { + if (text && BLI_testextensie(text->id.name + 2, ".osl")) { return tft_lb.last; } else {