diff --git a/bbb-api-demo/.gitignore b/bbb-api-demo/.gitignore
new file mode 100644
index 0000000000..1ab2f737c7
--- /dev/null
+++ b/bbb-api-demo/.gitignore
@@ -0,0 +1,3 @@
+build
+lib
+src/main/webapp/bbb_api_conf.jsp
diff --git a/bbb-api-demo/src/main/webapp/bbb_api.jsp b/bbb-api-demo/src/main/webapp/bbb_api.jsp
index 3a500184d9..3fc5d11fda 100755
--- a/bbb-api-demo/src/main/webapp/bbb_api.jsp
+++ b/bbb-api-demo/src/main/webapp/bbb_api.jsp
@@ -440,51 +440,53 @@ public String getRecordings(String meetingID) {
for (int i = 0; i < recordingList.getLength(); i++) {
Element recording = (Element) recordingList.item(i);
- String recordID = recording.getElementsByTagName("recordID").item(0).getTextContent();
- String name = recording.getElementsByTagName("name").item(0).getTextContent();
- String description = "";
- NodeList metadata = recording.getElementsByTagName("metadata");
- if(metadata.getLength()>0){
- Element metadataElem = (Element) metadata.item(0);
- if(metadataElem.getElementsByTagName("description").getLength() > 0){
- description = metadataElem.getElementsByTagName("description").item(0).getTextContent();
+ if(recording.getElementsByTagName("recordID").getLength()>0){
+
+ String recordID = recording.getElementsByTagName("recordID").item(0).getTextContent();
+ String name = recording.getElementsByTagName("name").item(0).getTextContent();
+ String description = "";
+ NodeList metadata = recording.getElementsByTagName("metadata");
+ if(metadata.getLength()>0){
+ Element metadataElem = (Element) metadata.item(0);
+ if(metadataElem.getElementsByTagName("description").getLength() > 0){
+ description = metadataElem.getElementsByTagName("description").item(0).getTextContent();
+ }
}
- }
-
- String starttime = recording.getElementsByTagName("startTime").item(0).getTextContent();
- String published = recording.getElementsByTagName("published").item(0).getTextContent();
- String playback = "";
- String length = "";
- NodeList formats = recording.getElementsByTagName("format");
- for (int j = 0; j < formats.getLength(); j++){
- Element format = (Element) formats.item(j);
- String typeP = format.getElementsByTagName("type").item(0).getTextContent();
- String urlP = format.getElementsByTagName("url").item(0).getTextContent();
- String lengthP = format.getElementsByTagName("length").item(0).getTextContent();
-
- if (j != 0){
- playback +=", ";
- }
- playback += StringEscapeUtils.escapeXml("" + typeP + "");
-
- if(typeP.equalsIgnoreCase("slides")){
- length = lengthP;
+ String starttime = recording.getElementsByTagName("startTime").item(0).getTextContent();
+ String published = recording.getElementsByTagName("published").item(0).getTextContent();
+ String playback = "";
+ String length = "";
+ NodeList formats = recording.getElementsByTagName("format");
+ for (int j = 0; j < formats.getLength(); j++){
+ Element format = (Element) formats.item(j);
+
+ String typeP = format.getElementsByTagName("type").item(0).getTextContent();
+ String urlP = format.getElementsByTagName("url").item(0).getTextContent();
+ String lengthP = format.getElementsByTagName("length").item(0).getTextContent();
+
+ if (j != 0){
+ playback +=", ";
+ }
+ playback += StringEscapeUtils.escapeXml("" + typeP + "");
+
+ if(typeP.equalsIgnoreCase("slides")){
+ length = lengthP;
+ }
}
+
+ newXMLdoc += "";
+
+ newXMLdoc += "" + recordID + "";
+ newXMLdoc += "" + name + "";
+ newXMLdoc += "" + description + "";
+ newXMLdoc += "" + starttime + "";
+ newXMLdoc += "" + published + "";
+ newXMLdoc += "" + playback + "";
+ newXMLdoc += "" + length + "";
+
+ newXMLdoc += "";
}
-
- newXMLdoc += "";
-
- newXMLdoc += "" + recordID + "";
- newXMLdoc += "" + name + "";
- newXMLdoc += "" + description + "";
- newXMLdoc += "" + starttime + "";
- newXMLdoc += "" + published + "";
- newXMLdoc += "" + playback + "";
- newXMLdoc += "" + length + "";
-
- newXMLdoc += "";
-
}
}catch (Exception e) {
e.printStackTrace(System.out);