diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/restapi/RestApiServlet.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/restapi/RestApiServlet.java index 26c42062a6..ce450dc3c2 100644 --- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/restapi/RestApiServlet.java +++ b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/restapi/RestApiServlet.java @@ -270,7 +270,7 @@ public class RestApiServlet extends HttpServlet { || "PUT".equals(req.getMethod()))) { @SuppressWarnings("unchecked") AcceptsCreate ac = (AcceptsCreate) c; - viewData = new ViewData(null, ac.create(rsrc, id)); + viewData = new ViewData(viewData.pluginName, ac.create(rsrc, id)); status = SC_CREATED; } else { throw e;