\r
public String getSubjects() {\r
StringBuilder builder = new StringBuilder("");\r
- for (ResponseDataObject data : getElements("md-subject")) {\r
- if (builder.length()==0) {\r
- builder.append(data.getValue());\r
- } else {\r
- builder.append(", ");\r
- builder.append(data.getValue());\r
+ if (getElements("md-subject") != null) {\r
+ for (ResponseDataObject data : getElements("md-subject")) {\r
+ if (builder.length()==0) {\r
+ builder.append(data.getValue());\r
+ } else {\r
+ builder.append(", ");\r
+ builder.append(data.getValue());\r
+ }\r
}\r
}\r
return builder.toString();\r