mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-06-05 21:49:48 +02:00
Avoid potential NPE
This commit is contained in:
@@ -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