Community
Participate
Working Groups
The following NPE was found in the console logs for Windows for the I20110222-0800 build: Exception in thread "Ant Build Server Connection" java.lang.NullPointerException [java] at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener.generateLink(RemoteAntBuildListener.java:266) [java] at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener.receiveTaskMessage(RemoteAntBuildListener.java:254) [java] at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener.receiveMessage(RemoteAntBuildListener.java:160) [java] at org.eclipse.ant.internal.launching.debug.model.RemoteAntDebugBuildListener.receiveMessage(RemoteAntDebugBuildListener.java:94) [java] at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener$ServerConnection.run(RemoteAntBuildListener.java:95)
Looks like the build listener has been shut down (via a call the shutdown()) and then reads another message from the socket - at this point the backing ILaunch object has been null'd out, causing the NPE. Looks like we should take note of when the listener has been shut down and stop processing messages from the socket.
Created attachment 189649 [details] fix fix for the NPE and code clean-up removing some JDT warnings about assigning values to parameters.
applied to HEAD