From 3c7264f1bcaca5b6a647a6688567fc13663ad5a0 Mon Sep 17 00:00:00 2001 From: Finn Schneider Date: Tue, 19 Nov 2024 14:33:42 +0100 Subject: [PATCH] fix: Area check --- .../lib/objects/addressing/CellMessageRoutingBuilder.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/mosaic-objects/src/main/java/org/eclipse/mosaic/lib/objects/addressing/CellMessageRoutingBuilder.java b/lib/mosaic-objects/src/main/java/org/eclipse/mosaic/lib/objects/addressing/CellMessageRoutingBuilder.java index eea550bd..736b275b 100644 --- a/lib/mosaic-objects/src/main/java/org/eclipse/mosaic/lib/objects/addressing/CellMessageRoutingBuilder.java +++ b/lib/mosaic-objects/src/main/java/org/eclipse/mosaic/lib/objects/addressing/CellMessageRoutingBuilder.java @@ -198,9 +198,10 @@ private void checkRouting() { } private void checkArea() { - if (routing == DestinationType.CELL_GEOCAST || routing == DestinationType.CELL_GEOCAST_MBMS) { - if (targetArea == null) { - throw new IllegalArgumentException("No target area was given for geographical routing! Aborting."); + if (targetArea == null) { + if (routing == DestinationType.CELL_GEOCAST_MBMS) { + throw new IllegalArgumentException("No target area was given for geographical routing using mbs!" + + "Have you called .geographical(GeoArea)? Aborting."); } } }