From 9f27005a1f5f3869115cdc30787140ca0a3da128 Mon Sep 17 00:00:00 2001 From: Benoit DUMONT Date: Tue, 8 Oct 2024 08:19:26 +0200 Subject: [PATCH] Manage cast exception on information detail page. --- .../org/cerberus/core/apiprivate/CampaignPrivateController.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/src/main/java/org/cerberus/core/apiprivate/CampaignPrivateController.java b/source/src/main/java/org/cerberus/core/apiprivate/CampaignPrivateController.java index 8cc992feb..2cb00c168 100644 --- a/source/src/main/java/org/cerberus/core/apiprivate/CampaignPrivateController.java +++ b/source/src/main/java/org/cerberus/core/apiprivate/CampaignPrivateController.java @@ -168,6 +168,8 @@ public int compare(JSONObject a, JSONObject b) { } } catch (JSONException ex) { LOG.error("Exception on JSON Parse.", ex); + } catch (ClassCastException ex) { + return 1; } } else {