From d600768d49bb561a2fc06708f1cdb80c4209f4ee Mon Sep 17 00:00:00 2001 From: gemu2015 Date: Thu, 25 Feb 2021 14:36:07 +0100 Subject: [PATCH] fix potential crash with wrong linker file --- tasmota/xdrv_13_display.ino | 1 + 1 file changed, 1 insertion(+) diff --git a/tasmota/xdrv_13_display.ino b/tasmota/xdrv_13_display.ino index c3ecd407b..01e353229 100755 --- a/tasmota/xdrv_13_display.ino +++ b/tasmota/xdrv_13_display.ino @@ -952,6 +952,7 @@ void DisplayText(void) extern FS *ufsp; void Display_Text_From_File(const char *file) { File fp; + if (!ufsp) return; fp = ufsp->open(file, FS_FILE_READ); if (fp >= 0) { char *savptr = XdrvMailbox.data;