loving that live fixing on production

This commit is contained in:
2025-12-18 22:40:13 +01:00
parent 10ee58e113
commit f1f9d7c0e7
@@ -715,7 +715,13 @@ public class MembershipManager {
*/ */
protected List<JsonObject> fetchAllOrderPositions(String path, MultiValueMap<String, String> queryParams, protected List<JsonObject> fetchAllOrderPositions(String path, MultiValueMap<String, String> queryParams,
List<JsonObject> result) { List<JsonObject> result) {
JsonObject orderPositions = pretixManager.request(path, HttpMethod.GET, queryParams).getAsJsonObject(); JsonElement response = pretixManager.request(path, HttpMethod.GET, queryParams);
if (response == null) {
return result;
}
JsonObject orderPositions = response.getAsJsonObject();
for (JsonElement element : orderPositions.getAsJsonArray("results")) { for (JsonElement element : orderPositions.getAsJsonArray("results")) {
JsonObject orderPosition = element.getAsJsonObject(); JsonObject orderPosition = element.getAsJsonObject();