From 55dc95d6015dfb980a118a3f2aec2c43c773e90a Mon Sep 17 00:00:00 2001 From: James Moger Date: Mon, 28 Apr 2014 15:03:45 -0400 Subject: [PATCH] Fix bug introduced in 67278f5 --- releases.moxie | 1 + src/main/java/com/gitblit/models/PluginRegistry.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/releases.moxie b/releases.moxie index 41719dfc..a08763e7 100644 --- a/releases.moxie +++ b/releases.moxie @@ -26,6 +26,7 @@ r23: { - Ralph Hoffman - Olivier Rouits - Owen Nelson + - Alexander Zabluda } # diff --git a/src/main/java/com/gitblit/models/PluginRegistry.java b/src/main/java/com/gitblit/models/PluginRegistry.java index 8da34578..3f692bcb 100644 --- a/src/main/java/com/gitblit/models/PluginRegistry.java +++ b/src/main/java/com/gitblit/models/PluginRegistry.java @@ -126,7 +126,7 @@ public class PluginRegistry implements Serializable { Version ir = Version.createVersion(installedRelease); Version cr = Version.ZERO; PluginRelease curr = getCurrentRelease(system); - if (cr != null) { + if (curr != null) { cr = Version.createVersion(curr.version); } switch (ir.compareTo(cr)) { -- 2.39.5