Bug with empty addressbook

For user who dont speak german please use this part of my forum
ferow2k
Beiträge: 2
Registriert: Fr 23. Nov 2007, 05:44
Wohnort: Argentina

Bug with empty addressbook

Beitrag von ferow2k »

Hi, first of all thanks for a great software!

Today after updating MPE (1.6.4) and the plugin (0.9.9), and playing a bit with synchronization options I've found that I could not synchronize anymore with Thunderbird or Sunbird (but Sunbird was solved misteriously restarting it). It opened the program fine, but then threw an error.

Then I found that the Thunderbird's error console had two errors:
Error: cards_enum.hasMoreElements is not a function
Archivo Fuente: file:///<profilepath>/extensions/myphoneexplorer@fjsoft.at/components/mpe.js

And the other:
Error: Exception caught during -mpe export-cards: [Exception... "'[JavaScript Error: "cards_enum.hasMoreElements is not a function" {file: "file:///<profilepath>/extensions/myphoneexplorer@fjsoft.at/components/mpe.js" line: 411}]' when calling method: [mpeIMyPhoneExplorer::WriteCards]" nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)" location: "JS frame :: file:///<profilepath>/extensions/myphoneexplorer@fjsoft.at/components/mpecli.js :: handler_handle :: line 64" data: yes]
Archivo Fuente: file:///<profilepath>/extensions/myphoneexplorer@fjsoft.at/components/mpecli.js
Línea: 122
Línea: 411

After that I remembered to have checked to sync the addressbook named "recopilated addresses". So I tried unchecking it, and it worked again.
The difference with the other addressbook was that it was empty.

I only took a quick peek at the plugin's javascript code, but I assume that the object cards_enum is null and as such it does not have a function named hasMoreElements. I guess a check for nullity is missing?
I hope it can be fixed that easy!

Thanks!

Ferow2k