Don't NPE on missing assertions.

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1346382 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dawid Weiss 2012-06-05 13:19:40 +00:00
parent 36563ae507
commit 3161334d2a
1 changed files with 3 additions and 1 deletions

View File

@ -156,8 +156,10 @@ public final class RunListenerPrintReproduceInfo extends RunListener {
if (!TEST_LINE_DOCS_FILE.equals(DEFAULT_LINE_DOCS_FILE)) addVmOpt(b, "tests.linedocsfile", TEST_LINE_DOCS_FILE);
if (classEnvRule != null) {
addVmOpt(b, "tests.locale", classEnvRule.locale);
if (classEnvRule.timeZone != null) {
addVmOpt(b, "tests.timezone", classEnvRule.timeZone.getID());
}
}
// Randomize this: LUCENE-4094
addVmOpt(b, "args", "-Dfile.encoding=" + System.getProperty("file.encoding"));