Community
Participate
Working Groups
Build 200302211557 In the CVS Repositories view, a NPE is generated discarding a location when there is no locations created. Steps to reproduce: 1 - Open a new workspace 2 - Open the CVS Repositories view 3 - Open the context menu in this view area: "Discard location" option is enabled (shouldn't) 4 - Select "Discard location" (bug happens) An entry for the NPE in the log is generated. Top entries in stack trace are: java.lang.NullPointerException at org.eclipse.team.internal.ccvs.ui.repo.RemoveRootAction.getSelectedRemoteRoots (RemoveRootAction.java:49) at org.eclipse.team.internal.ccvs.ui.repo.RemoveRootAction.run (RemoveRootAction.java:72) at org.eclipse.jface.action.Action.runWithEvent(Action.java:841) ...
Created attachment 3795 [details] This also solves the "global and context enablement out of sync" problem
Patch has been applied