1pass.lua
changeset 24 c34cc914f09d
parent 22 9adb804d66b0
child 25 44b6b8b34eb8
--- a/1pass.lua	Sun Feb 09 00:17:38 2014 -0500
+++ b/1pass.lua	Mon Feb 10 19:42:31 2014 -0500
@@ -128,6 +128,11 @@
     local password = nil
     local email = nil
 
+    if secure.fields == nil then
+      print("no secure fields, don't know how to handle this item") 
+      return
+    end
+
     for i,v in ipairs(secure.fields) do
         --print(info.name .. ": " .. v.type .. ", " .. v.value)
         local ignored = false
@@ -241,10 +246,6 @@
         return
     end
     --dumptable("secure " .. info.name, secure)
-    if secure.fields == nil then
-      print("no secure fields, don't know how to handle this item") 
-      return
-    end
 
     local menuitem = appendGuiMenuItem(menu, info.name)