diff options
author | Philipp Prangenberg <philipp.prangenberg@derkurier.de> | 2016-12-06 08:55:11 +0100 |
---|---|---|
committer | Philipp Prangenberg <philipp.prangenberg@derkurier.de> | 2016-12-06 08:55:11 +0100 |
commit | f8b3d5cc7286726e7719ddcd4db8d8456aa6e01f (patch) | |
tree | 00066e3f21e5ab62a06d7886975386f6a8f94573 /src/org/traccar/BaseProtocolDecoder.java | |
parent | e59f8af8c74940223e6ac3f0f6b99390bb464876 (diff) | |
download | trackermap-server-f8b3d5cc7286726e7719ddcd4db8d8456aa6e01f.tar.gz trackermap-server-f8b3d5cc7286726e7719ddcd4db8d8456aa6e01f.tar.bz2 trackermap-server-f8b3d5cc7286726e7719ddcd4db8d8456aa6e01f.zip |
Style changes
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/BaseProtocolDecoder.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java index 9e04fa5cd..103a999b0 100644 --- a/src/org/traccar/BaseProtocolDecoder.java +++ b/src/org/traccar/BaseProtocolDecoder.java @@ -40,10 +40,11 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder { device.setUniqueId(uniqueId); device.setCategory(Context.getConfig().getString("database.registerUnknown.defaultCategory", "default")); - if(!defaultGroupName.equals("NOTDEFINED")){ + if (!defaultGroupName.equals("NOTDEFINED")) { Group defaultGroup = Context.getDeviceManager().getGroupByName(defaultGroupName); - if(defaultGroup != null) + if (defaultGroup != null) { device.setGroupId(defaultGroup.getId()); + } } try { @@ -192,4 +193,4 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder { } } -}
\ No newline at end of file +} |