Skip to content

Commit

Permalink
Merge pull request #60 from jogrimst/master
Browse files Browse the repository at this point in the history
#58 NullPointerException when not device folder
  • Loading branch information
literacyapp authored Jun 17, 2017
2 parents e185626 + c7b59fd commit 37ea90c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ android {
applicationId "org.literacyapp.analytics"
minSdkVersion 21
targetSdkVersion 23
versionCode 1002001
versionName "1.2.1"
versionCode 1002002
versionName "1.2.2"
}

buildTypes {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* Master of DAO (schema version 1002001): knows all DAOs.
* Master of DAO (schema version 1002002): knows all DAOs.
*/
public class DaoMaster extends AbstractDaoMaster {
public static final int SCHEMA_VERSION = 1002001;
public static final int SCHEMA_VERSION = 1002002;

/** Creates underlying database table using DAOs. */
public static void createAllTables(Database db, boolean ifNotExists) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public boolean onStartJob(JobParameters jobParameters) {
File deviceDir = deviceDirs[i];
Log.i(getClass().getName(), "deviceDir: " + deviceDir);

if (!deviceDir.getName().startsWith("device_")) {
continue;
}

File[] eventFiles = deviceDir.listFiles();
for (File eventFile : eventFiles) {
Log.i(getClass().getName(), "eventFile: " + eventFile);
Expand Down

0 comments on commit 37ea90c

Please sign in to comment.