diff options
author | Philipp Prangenberg <philipp.prangenberg@derkurier.de> | 2016-12-09 14:34:39 +0100 |
---|---|---|
committer | Philipp Prangenberg <philipp.prangenberg@derkurier.de> | 2016-12-09 14:34:39 +0100 |
commit | d139c55f06342fefb80082a0f6ffa6adea77f8dc (patch) | |
tree | a232f023ad0e1f92709ad574277e7db1adb100f9 /src | |
parent | d196a75e70f80dd1a45202b82052b1227bf1ae8d (diff) | |
download | traccar-server-d139c55f06342fefb80082a0f6ffa6adea77f8dc.tar.gz traccar-server-d139c55f06342fefb80082a0f6ffa6adea77f8dc.tar.bz2 traccar-server-d139c55f06342fefb80082a0f6ffa6adea77f8dc.zip |
Moved declaration to section where it is used
Diffstat (limited to 'src')
-rw-r--r-- | src/org/traccar/BaseProtocolDecoder.java | 2 |
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); } |