diff options
author | Dan Eicher <dan@eu.phorio.us> | 2012-12-30 00:16:21 +0400 |
---|---|---|
committer | Dan Eicher <dan@eu.phorio.us> | 2012-12-30 00:16:21 +0400 |
commit | 76fd28c25d07a6acb746be09a0eda4201fce892f (patch) | |
tree | fb5fe32717aa39482d75150f51cc07cebfea2180 /source/blender/editors/space_text | |
parent | eae167998a17481d4758b87ad068111fa8e3d881 (diff) |
Missing NULL check which crashes on opening the Text Editor without an active Text object
Diffstat (limited to 'source/blender/editors/space_text')
-rw-r--r-- | source/blender/editors/space_text/text_format.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |