aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacek Pospychala2012-09-10 04:00:59 (EDT)
committerJacek Pospychala2012-09-10 04:00:59 (EDT)
commit48e6903be9b9fde4327a5666064677972fcd569f (patch)
treec4da406ce0a7b0bc88eb02690e1d81ac1063c2ae
parent089adc72a09e8beab1507a36f2236bd6eb5c69ac (diff)
downloadorg.eclipse.pdt-48e6903be9b9fde4327a5666064677972fcd569f.zip
org.eclipse.pdt-48e6903be9b9fde4327a5666064677972fcd569f.tar.gz
org.eclipse.pdt-48e6903be9b9fde4327a5666064677972fcd569f.tar.bz2
Bug 386537 - Tests failing due to NullPointerException
-rw-r--r--tests/org.eclipse.php.ui.tests/src/org/eclipse/php/ui/tests/contentassist/ContentAssistTests.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/org.eclipse.php.ui.tests/src/org/eclipse/php/ui/tests/contentassist/ContentAssistTests.java b/tests/org.eclipse.php.ui.tests/src/org/eclipse/php/ui/tests/contentassist/ContentAssistTests.java
index 1e6a428..638d0f9 100644
--- a/tests/org.eclipse.php.ui.tests/src/org/eclipse/php/ui/tests/contentassist/ContentAssistTests.java
+++ b/tests/org.eclipse.php.ui.tests/src/org/eclipse/php/ui/tests/contentassist/ContentAssistTests.java
@@ -206,6 +206,11 @@ public class ContentAssistTests extends AbstractPDTTTest {
display.sleep();
}
}
+ if (viewer == null) {
+ fail("fEditor.getTextViewer() returns null for file "
+ + testFile.getFullPath() + "(" + testFile.getLocation()
+ + ")");
+ }
StyledText textWidget = viewer.getTextWidget();
textWidget.setCaretOffset(offset);
viewer.doOperation(ISourceViewer.CONTENTASSIST_PROPOSALS);