forked from bartvdbraak/blender
Missing NULL check which crashes on opening the Text Editor without an active Text object
This commit is contained in:
parent
eae167998a
commit
76fd28c25d
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user