|
@@ -115,10 +115,16 @@ public class ReviewService {
|
|
String school="";
|
|
String school="";
|
|
if(result != null && !result.equals("")) {
|
|
if(result != null && !result.equals("")) {
|
|
JSONObject json = new JSONObject(result);
|
|
JSONObject json = new JSONObject(result);
|
|
- if(json.has("name"))
|
|
|
|
- name=json.getString("name");
|
|
|
|
- if(json.has("school"))
|
|
|
|
- school=json.getString("school");
|
|
|
|
|
|
+ if(json.has("name")) {
|
|
|
|
+ name = json.getString("name");
|
|
|
|
+ if(name==null)
|
|
|
|
+ name="";
|
|
|
|
+ }
|
|
|
|
+ if(json.has("school")) {
|
|
|
|
+ school = json.getString("school");
|
|
|
|
+ if(school==null)
|
|
|
|
+ school="";
|
|
|
|
+ }
|
|
reviewWorkerVOS.add(new ReviewWorkerVO(reviewWorker,name,school));
|
|
reviewWorkerVOS.add(new ReviewWorkerVO(reviewWorker,name,school));
|
|
}
|
|
}
|
|
else{
|
|
else{
|