Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 70113 invoked from network); 27 Mar 2003 13:37:39 -0000 Received: from bodewig.bost.de (195.227.98.11) by daedalus.apache.org with SMTP; 27 Mar 2003 13:37:39 -0000 Received: (from bodewig@localhost) by bodewig.bost.de (8.11.6/8.11.6) id h2RDbdB24719; Thu, 27 Mar 2003 14:37:39 +0100 X-Authentication-Warning: bodewig.bost.de: bodewig set sender to bodewig@apache.org using -f To: user@ant.apache.org Subject: Re: NullPointerException when calling execTask from API References: From: Stefan Bodewig Date: 27 Mar 2003 14:37:39 +0100 In-Reply-To: Message-ID: Lines: 11 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Military Intelligence) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N On Thu, 27 Mar 2003, Oliver Alth wrote: > Hello, I am trying to call the exec task from the api. > I get this nullPointerExecption You forgot to invoke setProject() on your exec member. BTW, you will want to look at the Execute class which may be better suited for being used as delegate. Stefan