Index: lams_central/src/java/org/lamsfoundation/lams/authoring/ObjectExtractor.java =================================================================== RCS file: /usr/local/cvsroot/lams_central/src/java/org/lamsfoundation/lams/authoring/ObjectExtractor.java,v diff -u -r1.100 -r1.101 --- lams_central/src/java/org/lamsfoundation/lams/authoring/ObjectExtractor.java 9 Apr 2015 11:37:28 -0000 1.100 +++ lams_central/src/java/org/lamsfoundation/lams/authoring/ObjectExtractor.java 23 Jun 2015 17:37:03 -0000 1.101 @@ -1931,7 +1931,7 @@ } private Integer getCoord(JSONObject details, String tag) throws JSONException { - Integer coord = (Integer) JsonUtil.opt(details, tag); + Integer coord = ((Number) JsonUtil.opt(details, tag)).intValue(); return (coord == null) || (coord >= 0) ? coord : ObjectExtractor.DEFAULT_COORD; } Index: lams_central/web/includes/javascript/authoring/authoringActivity.js =================================================================== RCS file: /usr/local/cvsroot/lams_central/web/includes/javascript/authoring/authoringActivity.js,v diff -u -r1.49 -r1.50 --- lams_central/web/includes/javascript/authoring/authoringActivity.js 19 Jun 2015 17:51:25 -0000 1.49 +++ lams_central/web/includes/javascript/authoring/authoringActivity.js 23 Jun 2015 17:37:03 -0000 1.50 @@ -463,11 +463,13 @@ * Draws a Parallel (double) Activity container */ parallelActivity : function(x, y) { - if (x == undefined || y == undefined) { - // if no new coordinates are given, just redraw the activity - x = this.items.shape.getBBox().x; - y = this.items.shape.getBBox().y; + // if no new coordinates are given, just redraw the activity or give default value + if (x == undefined) { + x = this.items ? this.items.shape.getBBox().x : 0; } + if (y == undefined) { + y = this.items ? this.items.shape.getBBox().y : 0; + } if (this.childActivities && this.childActivities.length > 0) { // draw one by one, vertically @@ -1484,4 +1486,4 @@ branchingActivity.longestBranchLength = longestBranchLength; } -}; +}; \ No newline at end of file