From 27e3a840eb04166209e22b35d37809ec3a8ce526 Mon Sep 17 00:00:00 2001 From: j2blake Date: Mon, 28 Nov 2011 17:45:00 +0000 Subject: [PATCH] NIHVIVO-3340 Correct the position of the test for null vclass. --- .../controller/freemarker/IndividualListController.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/IndividualListController.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/IndividualListController.java index f3ae0acb5..85a86fe55 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/IndividualListController.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/controller/freemarker/IndividualListController.java @@ -78,12 +78,12 @@ public class IndividualListController extends FreemarkerHttpServlet { + VClass.class.getName() + "."); } - String vclassUri = vclass.getURI(); - body.put("vclassId", vclassUri); - vreq.setAttribute("displayType", vclassUri); // used by the template model object - if (vclass != null) { + String vclassUri = vclass.getURI(); + body.put("vclassId", vclassUri); + vreq.setAttribute("displayType", vclassUri); // used by the template model object + // Set title and subtitle. VClassGroup classGroup = vclass.getGroup(); String title;