Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Eicher <dan@eu.phorio.us>2012-12-30 00:16:21 +0400
committerDan Eicher <dan@eu.phorio.us>2012-12-30 00:16:21 +0400
commit76fd28c25d07a6acb746be09a0eda4201fce892f (patch)
treefb5fe32717aa39482d75150f51cc07cebfea2180 /source/blender/editors/space_text
parenteae167998a17481d4758b87ad068111fa8e3d881 (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.c2
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 {