Skip to content

Commit

Permalink
Fix NPE when encountering certain ble advertisements
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrin committed Jun 26, 2019
1 parent 555f21a commit 55f5fd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

### v0.2.5

- Improved error tolerance while parsing for raw data
- General refactoring with no functional changes
- Added "named" filter mode which saves only named tags (thanks matthewgardner)

### v0.2.4

- Significant amount of refactoring, this release may be a bit more unstable than usual
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/fi/tkgwf/ruuvi/handler/BeaconHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public Optional<EnhancedRuuviMeasurement> handle(HCIData hciData) {
if (adData == null) {
adData = hciData.findAdvertisementDataByType(0x16); // Eddystone url
if (adData == null) {
return null;
return Optional.empty();
}
}
RuuviMeasurement measurement = parser.parse(adData.dataBytes());
Expand Down

0 comments on commit 55f5fd2

Please sign in to comment.