Community
Participate
Working Groups
To avoid NPEs with the target manager due to possible race condition when initializing the CloudFoundryServerBehaviour (CFSB) by WTP, initialize the target manager in the field declaration instead of the initialize method of the CFSB. Below is an NPE that was thrown due to a race condition when initializing the CFSB. java.lang.NullPointerException at org.eclipse.cft.server.core.internal.client.CloudFoundryServerBehaviour.getTarget(CloudFoundryServerBehaviour.java:198) at org.eclipse.cft.server.core.internal.client.CloudFoundryServerBehaviour.getRequestFactory(CloudFoundryServerBehaviour.java:180) at org.eclipse.cft.server.core.internal.client.CloudFoundryServerBehaviour.getApplications(CloudFoundryServerBehaviour.java:695)
Fix pushed to master branch.