aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/web/client/view/ArchiveView.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/org/traccar/web/client/view/ArchiveView.java b/src/org/traccar/web/client/view/ArchiveView.java
index 1b4dbce8..67b57503 100644
--- a/src/org/traccar/web/client/view/ArchiveView.java
+++ b/src/org/traccar/web/client/view/ArchiveView.java
@@ -175,10 +175,7 @@ public class ArchiveView implements SelectionChangedEvent.SelectionChangedHandle
public void onAnything() {
Device oldDevice = deviceCombo.getValue();
if (oldDevice != null) {
- Device newDevice = deviceStore.findModel(oldDevice);
- if (newDevice != null) {
- deviceCombo.setValue(newDevice);
- }
+ deviceCombo.setValue(deviceStore.findModel(oldDevice));
}
}