lib/lastpass/vault.rb in lastpass-1.1.0 vs lib/lastpass/vault.rb in lastpass-1.2.0
- old
+ new
@@ -34,10 +34,13 @@
Parser.extract_chunks(blob).each do |i|
case i.id
when "ACCT"
# TODO: Put shared folder name as group in the account
- @accounts.push Parser.parse_ACCT i, key
+ account = Parser.parse_ACCT i, key
+ if account
+ @accounts << account
+ end
when "PRIK"
rsa_private_key = Parser.parse_PRIK i, encryption_key
when "SHAR"
# After SHAR chunk all the folliwing accounts are enrypted with a new key
key = Parser.parse_SHAR(i, encryption_key, rsa_private_key)[:encryption_key]