wieseljonas / java-libpst

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

Getting messages from partially-incorrect .pst (2) #42

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hello,

It's continuation of  Issue 40.

PSTFolder.java has strange code:

public Vector<PSTObject> getChildren(int numberToReturn)

        if (emailsTable != null) {
...

        } else if (fallbackEmailsTable != null) {
            // we use the fallback
            List<HashMap<Integer, PSTTable7CItem>> rows = this.emailsTable.getItems(currentEmailIndex, numberToReturn);

But in "else" case "emailsTable" is always null. Am I wrong?

Original issue reported on code.google.com by justpdat...@gmail.com on 16 Jun 2011 at 11:04

GoogleCodeExporter commented 9 years ago
the line:
} else if (fallbackEmailsTable != null) {
            // we use the fallback
=================================================
List<HashMap<Integer, PSTTable7CItem>> rows = 
this.emailsTable.getItems(currentEmailIndex, numberToReturn);
=================================================

should be removed or commented. In this case works fine. You may close the 
issue, thanks!

Regards,
Maxim

Original comment by justpdat...@gmail.com on 20 Jun 2011 at 10:39

GoogleCodeExporter commented 9 years ago
Thanks for this, I must have accidentally pasted this line in before committing.

Original comment by rjohnson...@gmail.com on 17 Jul 2011 at 4:00