Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/CreatePatchTest.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/CreatePatchTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/CreatePatchTest.java
index 74bd0c518..959f386d4 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/CreatePatchTest.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/ui/CreatePatchTest.java
@@ -269,13 +269,13 @@ public class CreatePatchTest extends EclipseTest {
private IWorkbenchPart getActivePart() {
IWorkbenchWindow window = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow();
- if (window == null) {
- return null;
- }
+ assertNotNull(window);
IWorkbenchPage page = window.getActivePage();
if (page == null) {
- return null;
+ window.setActivePage(window.getPages()[0]);
+ page = window.getActivePage();
}
+ assertNotNull(page);
return page.getActivePart();
}

Back to the top