Re: How to resolve a NullPointerException

2006-10-27 Thread tharanga wijethilake
Hi, I am running the following code to run this ant file. private void antRun(){ File buildFile = new File("C:\\Documents and Settings\\tharanga\\My Documents\\IBM\\wssitedev51\\workspace\\BundleDeployer\\build.xml"); if(buildFile.exists()){ Project p = new Project(); p.setUserProperty("ant.

Re: How to resolve a NullPointerException

2006-10-16 Thread Antoine Levy-Lambert
Hello, how do you run this programatically ? one common source of null pointer exceptions in Ant API use is to forget to set a project reference on task objects or datatypes. The null pointer exception happens then as soon as the task or the datatype tries to log something. if you have a NPE w