getColorCategories throws Exception

14 views
Skip to first unread message

Martin Clausen

unread,
Aug 13, 2012, 4:45:03 AM8/13/12
to java-libp...@googlegroups.com
When trying to use the getColorCategories I get the following I get a arrayIndexOutOfBoundsException. My Java skills unfortunately does not permit me to debug this myself ( I use Clojure). Any ideas?

Martin Clausen

unread,
Aug 15, 2012, 5:10:44 PM8/15/12
to java-libp...@googlegroups.com
I realize that a issue for this has already been recorded, i.e. http://code.google.com/p/java-libpst/issues/detail?id=50

I have looked into the exception thrown and it *appears* the error is caused by wrongly calculated start and end inputs to the call to convertBigEndianBytesToLong (http://code.google.com/p/java-libpst/source/browse/trunk/com/pff/PSTMessage.java#870).
I tried looking into the .pst documentation, to see if there are any hints on what correct start and end values would be, but in vain.

I hope someone with better insight into the .pst format will look into this.

rjohnsondev

unread,
Aug 23, 2012, 6:07:35 PM8/23/12
to java-libp...@googlegroups.com
Hi Martin,

With the PST provided in issue #50, the item referenced by getColorCategories was actually set to a false value instead of simply not existing.

I've added a couple of lines to address this issue (github), can you please check and let me know if that addresses your issue?  If not would it be possible to provide me with the PST you are using?

Thanks,

Richard
Reply all
Reply to author
Forward
0 new messages