Skip to content

Commit

Permalink
fix: Area check
Browse files Browse the repository at this point in the history
  • Loading branch information
FunKuchen committed Nov 19, 2024
1 parent 5ea7784 commit 3c7264f
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
}
}
}
Expand Down

0 comments on commit 3c7264f

Please sign in to comment.