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

github.com/stevedonovan/Penlight.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoron Behar <doron.behar@gmail.com>2017-07-15 17:03:10 +0300
committerGitHub <noreply@github.com>2017-07-15 17:03:10 +0300
commit5ff83d69041325299ad565c220207d49d20ea293 (patch)
treeaa870ad4398fe39043df1355cbccbb269f89ba8e
parent0ba9c24000d3cad1d1d81a3dd233584b0bbd2950 (diff)
Fix error in 'pl.lapp.process_options_string'
Fix error "attempt to concatenate a nil value (local 'vtype')" by checking making sure vtype is not nil.
-rw-r--r--lua/pl/lapp.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/pl/lapp.lua b/lua/pl/lapp.lua
index fbeffd3..200c48f 100644
--- a/lua/pl/lapp.lua
+++ b/lua/pl/lapp.lua
@@ -313,8 +313,8 @@ function lapp.process_options_string(str,args)
ps.converter = converter
end
ps.constraint = types[vtype].constraint
- elseif not builtin_types[vtype] then
- lapp.error(vtype.." is unknown type")
+ elseif not builtin_types[vtype] and vtype then
+ lapp.error(vtype.." is unknown type")
end
parms[optparm] = ps
end