Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2012-05-12 22:11:15 -0400
committerslewis2012-05-12 22:11:15 -0400
commit7e87853dd661c441d35bb5bdbd0317149fd83652 (patch)
treec529dadaf533b01ef1ac212507d345aeeb5baf34
parent44e76a961eb29f44abcb2d510bffc26f75b99f7f (diff)
downloadorg.eclipse.ecf-7e87853dd661c441d35bb5bdbd0317149fd83652.tar.gz
org.eclipse.ecf-7e87853dd661c441d35bb5bdbd0317149fd83652.tar.xz
org.eclipse.ecf-7e87853dd661c441d35bb5bdbd0317149fd83652.zip
Fix for incorrect test
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLCancelTest.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLCancelTest.java b/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLCancelTest.java
index 934e3cc8e..55b300b00 100755
--- a/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLCancelTest.java
+++ b/tests/bundles/org.eclipse.ecf.tests.filetransfer/src/org/eclipse/ecf/tests/filetransfer/URLCancelTest.java
@@ -79,7 +79,8 @@ public class URLCancelTest extends AbstractRetrieveTestCase {
*/
protected void handleDoneEvent(IIncomingFileTransferReceiveDoneEvent event) {
super.handleDoneEvent(event);
- assertTrue(incomingFileTransfer.getException() != null);
+ if (incomingFileTransfer != null)
+ assertTrue(incomingFileTransfer.getException() != null);
}
protected void testReceive(String url) throws Exception {

Back to the top