Index: lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java =================================================================== RCS file: /usr/local/cvsroot/lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java,v diff -u -r1.138 -r1.139 --- lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java 9 Jun 2015 11:36:32 -0000 1.138 +++ lams_tool_forum/src/java/org/lamsfoundation/lams/tool/forum/service/ForumService.java 19 Jun 2015 03:23:20 -0000 1.139 @@ -1595,7 +1595,7 @@ /** Used by the Rest calls to create content. * Mandatory fields in toolContentJSON: title, instructions, topics. * Topics must contain a JSONArray of JSONObject objects, which have the following mandatory fields: subject, body - * There should be at least one topic object in the Topics array. + * There will usually be at least one topic object in the Topics array but the array may be of zero length. */ @Override public void createRestToolContent(Integer userID, Long toolContentID, JSONObject toolContentJSON) throws JSONException { @@ -1653,30 +1653,30 @@ // **************************** Handle topic ********************* JSONArray topics = toolContentJSON.getJSONArray("topics"); - for (int i=0; i