aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilipp Prangenberg <philipp.prangenberg@derkurier.de>2016-12-09 14:34:39 +0100
committerPhilipp Prangenberg <philipp.prangenberg@derkurier.de>2016-12-09 14:34:39 +0100
commitd139c55f06342fefb80082a0f6ffa6adea77f8dc (patch)
treea232f023ad0e1f92709ad574277e7db1adb100f9
parentd196a75e70f80dd1a45202b82052b1227bf1ae8d (diff)
downloadtrackermap-server-d139c55f06342fefb80082a0f6ffa6adea77f8dc.tar.gz
trackermap-server-d139c55f06342fefb80082a0f6ffa6adea77f8dc.tar.bz2
trackermap-server-d139c55f06342fefb80082a0f6ffa6adea77f8dc.zip
Moved declaration to section where it is used
-rw-r--r--src/org/traccar/BaseProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java
index ff7ab685a..ea0905bf2 100644
--- a/src/org/traccar/BaseProtocolDecoder.java
+++ b/src/org/traccar/BaseProtocolDecoder.java
@@ -34,11 +34,11 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder {
public long addUnknownDevice(String uniqueId) {
Device device = new Device();
- long defaultGroupId = Context.getConfig().getLong("database.registerUnknown.defaultGroupId");
device.setName(uniqueId);
device.setUniqueId(uniqueId);
device.setCategory(Context.getConfig().getString("database.registerUnknown.defaultCategory"));
+ long defaultGroupId = Context.getConfig().getLong("database.registerUnknown.defaultGroupId");
if (defaultGroupId != 0) {
device.setGroupId(defaultGroupId);
}