Commits

Devin Martin  committed 70d1198 Merge

Merge latest from Default

  • Participants
  • Parent commits 9828fcf, 878efe7
  • Branches CustomPlaceholder

Comments (0)

Files changed (1)

File KeeOtpExt.cs

             entry = null;
 
             var entries = this.host.MainWindow.GetSelectedEntries();
-            if (entries.Length > 1)
+            if (entries == null || entries.Length == 0)
+            {
+                MessageBox.Show("Please select an entry");
+                return false;
+            }
+            else if (entries.Length > 1)
             {
                 MessageBox.Show("Please select only one entry");
                 return false;
             }
-            else if (entries.Length == 0)
+            else
             {
-                MessageBox.Show("Please select an entry");
-                return false;
+                // grab the entry that we care about
+                entry = entries[0];
+                return true;
             }
-
-            // grab the entry that we care about
-            entry = entries[0];
-            return true;
         }
 
         public override string UpdateUrl