mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2026-07-31 07:44:24 +02:00
Avoid potential NPE
This commit is contained in:
+1
-1
@@ -769,7 +769,7 @@ public class HuamiSupport extends AbstractBTLEDeviceSupport {
|
||||
if (characteristicChunked == null) {
|
||||
return;
|
||||
}
|
||||
if (bufferMusicSpec == null && bufferMusicStateSpec == null) {
|
||||
if (bufferMusicSpec == null || bufferMusicStateSpec == null) {
|
||||
try {
|
||||
TransactionBuilder builder = performInitialized("send dummy playback info to enable music controls");
|
||||
writeToChunked(builder, 3, new byte[]{1, 0, 1, 0, 0, 0, 1, 0});
|
||||
|
||||
Reference in New Issue
Block a user