diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-24 10:45:26 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-24 10:45:26 -0800 |
commit | 98993ee219b6c0cb31f2f3b1608d378b2e028535 (patch) | |
tree | 77a6e8366c27b8b3851e52b6ab81ff62920b970c /src/org/traccar/BaseProtocolDecoder.java | |
parent | a129cfd3159c02b4f3996dbdfb5299ac95a6720c (diff) | |
download | traccar-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.tar.gz traccar-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.tar.bz2 traccar-server-98993ee219b6c0cb31f2f3b1608d378b2e028535.zip |
Refactor geolocation
Diffstat (limited to 'src/org/traccar/BaseProtocolDecoder.java')
-rw-r--r-- | src/org/traccar/BaseProtocolDecoder.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/org/traccar/BaseProtocolDecoder.java b/src/org/traccar/BaseProtocolDecoder.java index e1efbd3eb..aa5be612e 100644 --- a/src/org/traccar/BaseProtocolDecoder.java +++ b/src/org/traccar/BaseProtocolDecoder.java @@ -45,11 +45,12 @@ public abstract class BaseProtocolDecoder extends ExtendedObjectDecoder { private final Config config = Context.getConfig(); private final IdentityManager identityManager = Context.getIdentityManager(); private final ConnectionManager connectionManager = Context.getConnectionManager(); - private final StatisticsManager statisticsManager = Context.getStatisticsManager(); + private final StatisticsManager statisticsManager; private final Protocol protocol; public BaseProtocolDecoder(Protocol protocol) { this.protocol = protocol; + statisticsManager = Main.getInjector() != null ? Main.getInjector().getInstance(StatisticsManager.class) : null; } public String getProtocolName() { |