Fixed: start_line and end_line are integer JSONObjects, not Strings
@@ -133,8 +133,10 @@ public class MetadataUtils {
int index = StringUtils.ordinalIndexOf(path, "/", 5);
String filename = path.substring(index+1);
- int lineStart = Integer.parseInt(jsonRecord.getJSONObject("payload").getString("start_line"));
- int lineEnd = Integer.parseInt(jsonRecord.getJSONObject("payload").getString("end_line"));
+ logger.info("Filename from RapidPlugin is " + filename);
+
+ int lineStart = jsonRecord.getJSONObject("payload").getInt("start_line");
+ int lineEnd = jsonRecord.getJSONObject("payload").getInt("end_line");
Long fileId = getFileId(pckVersionId, filename);//could return null
