summaryrefslogtreecommitdiffstats
path: root/lib/modelfunctions.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lib/modelfunctions.lua')
-rw-r--r--lib/modelfunctions.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/modelfunctions.lua b/lib/modelfunctions.lua
index ed92abd..e0d2885 100644
--- a/lib/modelfunctions.lua
+++ b/lib/modelfunctions.lua
@@ -71,7 +71,7 @@ function getfiledetails(file, validatefilename, validatefiledetails)
if success then
if fs.is_file(file) then
local filedetails = fs.stat(file)
- filecontent.value = fs.read_file(file)
+ filecontent.value = fs.read_file(file) or ""
filesize.value = filedetails.size
mtime.value = filedetails.mtime
else