From c01f6b745b8ac74de3d85444f95181f6a326815c Mon Sep 17 00:00:00 2001 From: Michael McCandless Date: Tue, 28 Jul 2015 14:59:02 +0000 Subject: [PATCH] fix test bug that's hiding another failure git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1693107 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/test/org/apache/lucene/index/TestIndexFileDeleter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.java index ccc87d7e816..5fa777b3740 100644 --- a/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.java +++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexFileDeleter.java @@ -485,7 +485,7 @@ public class TestIndexFileDeleter extends LuceneTestCase { w.addDocument(doc); } } catch (Throwable t) { - if (t.toString().contains("fake fail") || t.getCause().toString().contains("fake fail")) { + if (t.toString().contains("fake fail") || (t.getCause() != null && t.getCause().toString().contains("fake fail"))) { // ok } else { throw t;