aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/web/client/controller/ArchiveController.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/org/traccar/web/client/controller/ArchiveController.java b/src/org/traccar/web/client/controller/ArchiveController.java
index 553e674..9a0c18d 100644
--- a/src/org/traccar/web/client/controller/ArchiveController.java
+++ b/src/org/traccar/web/client/controller/ArchiveController.java
@@ -74,7 +74,11 @@ public class ArchiveController implements ContentController, ArchiveView.Archive
@Override
public void onSuccess(List<Position> result) {
positionStore.clear();
- positionStore.addAll(result);
+ if (result.isEmpty()) {
+ new AlertMessageBox("Error", "No results found for selected period").show();
+ } else {
+ positionStore.addAll(result);
+ }
}
});
} else {