Skip to content

Commit

Permalink
ODE-755 since location is now part of almost all log records, it is r…
Browse files Browse the repository at this point in the history
…enamed to be more generic

Also fixed a NPE
  • Loading branch information
hmusavi committed Apr 26, 2018
1 parent 2f5c16c commit e2655fd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ public void processAndBackupFile(Path filePath, Path backupDir, Path failureDir)

try {
inputStream = new FileInputStream(filePath.toFile());
if (Files.probeContentType(filePath).equals("application/gzip")) {
String probeContentType = Files.probeContentType(filePath);
if (probeContentType != null && probeContentType.equals("application/gzip")) {
inputStream = new GZIPInputStream(inputStream);
}
bis = new BufferedInputStream(inputStream, odeProperties.getImportProcessorBufferSize());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@
/**
* POJO class for TIM log file location data
*/
public class TimLogLocation {
public class LogLocation {

private int latitude;
private int longitude;
private int elevation;
private short speed;
private short heading;

public TimLogLocation() {
public LogLocation() {
super();
}

Expand Down

0 comments on commit e2655fd

Please sign in to comment.