Skip to content

Commit

Permalink
fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
dernasherbrezon committed Aug 16, 2024
1 parent 070c26a commit 34c03f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/java/ru/r2cloud/model/DeviceConfiguration.java
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public static DeviceConfiguration fromJson(JsonObject meta) {
result.setUsername(meta.getString("username", null));
result.setGain(meta.getFloat("gain", 0));
JsonValue rtlDeviceId = meta.get("rtlDeviceId");
if (rtlDeviceId == null) {
if (rtlDeviceId == null || rtlDeviceId.isNull()) {
result.setRtlDeviceId("0");
} else {
if (rtlDeviceId.isNumber()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"maximumFrequency": 480000000,
"host": "7b:7a:24:3c:ed:50",
"gain": 0,
"rtlDeviceId": 0,
"rtlDeviceId": "0",
"biast": false,
"ppm": 0,
"antenna": {
Expand Down

0 comments on commit 34c03f1

Please sign in to comment.