wieseljonas / java-libpst

Automatically exported from code.google.com/p/java-libpst
1 stars 1 forks source link

Color categories exception #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
It's continuation of Issue 44.

For the attached .pst I've got the following exception after adding 
"email.getColorCategories()" call to Test.java sample:

C:\_Projects\_pst\pst08\example>java Test mailbee_test_archive.pst
Personal Folders
 |- Top of Personal Folders
 |  |- Deleted Items
 |  |- first level term
 |  |  |- second level term
 |  |  |  |- third level term
 |  |  |  |  |- contracts
 |  |  |  |  |  |- Email: Re: Visit Tomorrow
 |  |  |  |  |- Email: Re: Visit Tomorrow
 |  |  |  |  |- Email: RE: Laserfiche license invoice
 |  |  |  |- Email: Topic Reply Notification - Current user token
 |  |  |- folder again
 |  |  |  |- communication
 |  |  |  |  |- Email: FW: Revised Laserfiche Proposal
com.pff.PSTException: Unable to decode category data
        at com.pff.PSTMessage.getColorCategories(PSTMessage.java:893)
        at Test.processFolder(Test.java:48)
        at Test.processFolder(Test.java:36)
        at Test.processFolder(Test.java:36)
        at Test.processFolder(Test.java:36)
        at Test.processFolder(Test.java:36)
        at Test.<init>(Test.java:15)
        at Test.main(Test.java:8)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
        at com.pff.PSTMessage.getColorCategories(PSTMessage.java:867)
        ... 7 more

Please help to fix.

Regards,
Maxim

Original issue reported on code.google.com by justpdat...@gmail.com on 16 Aug 2011 at 9:15

Attachments:

GoogleCodeExporter commented 9 years ago
fixed in 
https://github.com/rjohnsondev/java-libpst/commit/500c12ab44b08202f507c337abeb76
b287dfecc0

Original comment by rjohnson...@gmail.com on 23 Aug 2012 at 10:08