fixing NPE when processing operations

revert-70ac1926
Ace 4 years ago
parent 7cd1baf1af
commit ada570f0a0

@ -231,6 +231,10 @@ public class OperationDAOUtil {
if (rs.getBoolean("IS_LARGE_RESPONSE")) { if (rs.getBoolean("IS_LARGE_RESPONSE")) {
largeResponseIDs.add(rs.getInt("OP_RES_ID")); largeResponseIDs.add(rs.getInt("OP_RES_ID"));
} else { } else {
if(activityStatus.getResponses() == null){
List<OperationResponse> operationResponses = new ArrayList<>();
activityStatus.setResponses(operationResponses);
}
activityStatus.getResponses().add(OperationDAOUtil.getOperationResponse(rs)); activityStatus.getResponses().add(OperationDAOUtil.getOperationResponse(rs));
} }
} }

Loading…
Cancel
Save