Skip to content

Commit

Permalink
Fix if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
paulbourelly999 committed Sep 11, 2023
1 parent 9c96647 commit 17a33cb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -309,12 +309,13 @@ public synchronized void processTimeAdvanceGrant(long time) throws InternalFeder
// Check for empty list of sensors which is valid
if (reg.getSensors() != null ) {
log.debug("Sending SensorRegistration interactions for sensor : {}", reg.getSensors());
}
else {
for (Detector sensor : reg.getSensors()) {
// Trigger Sensor registrations for all listed sensors.
this.rti.triggerInteraction(new DetectorRegistration(time,sensor));
}
}
else {
log.warn("No sensors registered for infrastructure instance {}.", reg.getInfrastructureId());
}
}

Expand Down

0 comments on commit 17a33cb

Please sign in to comment.