NIHVIVO-3340 Correct the position of the test for null vclass.

This commit is contained in:
j2blake 2011-11-28 17:45:00 +00:00
parent 2a07955c10
commit 27e3a840eb

View file

@ -78,12 +78,12 @@ public class IndividualListController extends FreemarkerHttpServlet {
+ VClass.class.getName() + "."); + VClass.class.getName() + ".");
} }
if (vclass != null) {
String vclassUri = vclass.getURI(); String vclassUri = vclass.getURI();
body.put("vclassId", vclassUri); body.put("vclassId", vclassUri);
vreq.setAttribute("displayType", vclassUri); // used by the template model object vreq.setAttribute("displayType", vclassUri); // used by the template model object
if (vclass != null) {
// Set title and subtitle. // Set title and subtitle.
VClassGroup classGroup = vclass.getGroup(); VClassGroup classGroup = vclass.getGroup();
String title; String title;