Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Valenta2003-01-31 19:43:04 +0000
committerMichael Valenta2003-01-31 19:43:04 +0000
commitaa782d727bf0ecfd42542e6d0614057cb16001bf (patch)
tree5e2b271500e03f022912a1c3c8afc3e07d2a1a04
parent7164df676d08d643e2775954f02b3e7a07987e2b (diff)
downloadeclipse.platform.team-aa782d727bf0ecfd42542e6d0614057cb16001bf.tar.gz
eclipse.platform.team-aa782d727bf0ecfd42542e6d0614057cb16001bf.tar.xz
eclipse.platform.team-aa782d727bf0ecfd42542e6d0614057cb16001bf.zip
30660: Selecting a project and running the CVS 'show editors' action from the team menu produced an error
-rw-r--r--bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/EditorsView.java18
1 files changed, 12 insertions, 6 deletions
diff --git a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/EditorsView.java b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/EditorsView.java
index 89f0f7dee..f6a3c3742 100644
--- a/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/EditorsView.java
+++ b/bundles/org.eclipse.team.cvs.ui/src/org/eclipse/team/internal/ccvs/ui/EditorsView.java
@@ -103,18 +103,24 @@ public class EditorsView extends ViewPart {
return ""; //$NON-NLS-1$
EditorsInfo info = (EditorsInfo) element;
+ String result = null;
switch (columnIndex) {
case 0 :
- return info.getFileName();
+ result = info.getFileName();
+ break;
case 1 :
- return info.getUserName();
+ result = info.getUserName();
+ break;
case 2 :
- return info.getDateString();
+ result = info.getDateString();
+ break;
case 3 :
- return info.getComputerName();
-
+ result = info.getComputerName();
+ break;
}
- return ""; //$NON-NLS-1$
+ // This method must not return null
+ if (result == null) result = ""; //$NON-NLS-1
+ return result;
}

Back to the top