From e0dcbe0d17e7fccc9741dd4bdb1252c2c885aad8 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Mon, 04 May 2009 12:46:36 +0000
Subject: [PATCH] Fix for issue #3965 (revert should not be supported from 2.0 to a previous version)
---
opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java b/opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java
index 09ddd26..27f835f 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/upgrader/Reverter.java
@@ -22,7 +22,7 @@
* CDDL HEADER END
*
*
- * Copyright 2007-2008 Sun Microsystems, Inc.
+ * Copyright 2007-2009 Sun Microsystems, Inc.
*/
package org.opends.quicksetup.upgrader;
@@ -1108,8 +1108,13 @@
}
if (currentVersion != null && newVersion != null) {
+ UserInteraction ui = userInteraction() ;
+ if (ui == null)
+ {
+ ui = new CliUserInteraction();
+ }
ReversionIssueNotifier uo = new ReversionIssueNotifier(
- userInteraction(), currentVersion, newVersion);
+ ui,currentVersion,newVersion);
uo.notifyUser();
if (uo.noServerStartFollowingOperation()) {
// Some issue dictates that we don't try and restart the server
--
Gitblit v1.10.0