Bug 32523 - NPE discarding location when there are no locations
Summary: NPE discarding location when there are no locations
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Team (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows XP
: P1 major (vote)
Target Milestone: 2.1 RC2   Edit
Assignee: Boris Shingarov CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-21 17:49 EST by Rafael Chaves CLA
Modified: 2003-03-03 16:50 EST (History)
0 users

See Also:


Attachments
This also solves the "global and context enablement out of sync" problem (1.97 KB, patch)
2003-02-28 15:50 EST, Boris Shingarov CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Rafael Chaves CLA 2003-02-21 17:49:31 EST
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)
...
Comment 1 Boris Shingarov CLA 2003-02-28 15:50:11 EST
Created attachment 3795 [details]
This also solves the "global and context enablement out of sync" problem
Comment 2 Boris Shingarov CLA 2003-03-03 16:50:44 EST
Patch has been applied