|
@@ -1274,13 +1274,16 @@ public class QuestionFlowService {
|
|
|
for(int j = 0; j < doubleList.size(); j++){
|
|
|
JSONArray singleList = doubleList.getJSONArray(j);
|
|
|
JSONArray userSingleList = userDoubleList.getJSONArray(i);
|
|
|
- JSONArray singleResult = doubleResult.getJSONArray(j);
|
|
|
+ JSONArray singleResult = null;
|
|
|
+ if (doubleResult.size() > i){
|
|
|
+ singleResult = doubleResult.getJSONArray(i);
|
|
|
+ }
|
|
|
if (singleResult == null){
|
|
|
singleResult = new JSONArray(0);
|
|
|
doubleResult.set(j, singleResult);
|
|
|
}
|
|
|
for (int k = 0; k < singleList.size(); k++){
|
|
|
- if (singleResult.get(k) == null){
|
|
|
+ if (singleResult.size()<=k || singleResult.get(k) == null){
|
|
|
singleResult.set(k, 0);
|
|
|
}
|
|
|
if (userSingleList.getBoolean(k)){
|
|
@@ -1300,7 +1303,7 @@ public class QuestionFlowService {
|
|
|
target.put("single", singleResult);
|
|
|
}
|
|
|
for(int j = 0; j < singleList.size(); j++){
|
|
|
- if (singleResult.get(j) == null){
|
|
|
+ if (singleResult.size()<=j || singleResult.get(j) == null){
|
|
|
singleResult.set(j, 0);
|
|
|
}
|
|
|
if (userSingleList.getBoolean(j)){
|