Hi,

I use James 2.2.0a15.

I've got a nullpointer exception in fetchmail while trying to receive a
mail with the headerlines
Return-Path: <>
Message-ID: <5624303.1076072031045.JavaMail.SYSTEM>
Date: Fri, 6 Feb 2004 13:53:51 +0100 (CET)

Configuration parameter
<remoteReceivedHeaderIndex>-1</remoteReceivedHeaderIndex> does not
change the error.

The main problem is that the worker stops an no messages from the POP3
Account ist transfered.

The exception comes from
org.apache.james.fetchmail.messageprocessor.java line 587 as a result of
variable headers whitch is in this case NULL
Actually I have solved the problem by adding an check like
        if (headers != null){
        if (headers.length > 0 && getRemoteReceivedHeaderIndex() > -1)
                ...
        }
        }
Is there a better way to solve the problem?

Thanks


With best regards
Mit freundlichen Gr��en


Dr. Arpad Horvath

Prisma Gesellschaft
f�r angewandte Informatik mbH
Marktplatz 9
35781 Weilburg

Tel ++49 6471 / 9265-0
Fax ++49 6471 / 9265-55

http://www.prisma-net.de
Mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to