Skip to content

Commit

Permalink
Hack to fix some thermal zone names being null
Browse files Browse the repository at this point in the history
(just ignore entire array).
Proper way would be to change those to unnamed or similar.
  • Loading branch information
lagerspetz committed May 12, 2019
1 parent 792a6c3 commit 418712a
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@ private long addSample(Sample s) {
// Write the sample hashmap as a blob
try {
TSerializer serializer = new TSerializer(new TCompactProtocol.Factory());
s.setThermalZoneNames(null);
byte[] sampleData = serializer.serialize(s);
initialValues.put(COLUMN_SAMPLE, sampleData);
return db.insert(SAMPLES_VIRTUAL_TABLE, null, initialValues);
Expand Down

0 comments on commit 418712a

Please sign in to comment.