Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f08a219b authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by Andre Eisenbach
Browse files

Catch an exception when updating incoming message status

Note: this change does not fix the root cause for Bug 16042763,
but addresses an issue that could be triggered within the
same context as Bug 16042763.

Bug: 16042763
Change-Id: Ib56894f3fa3b7754d1d3f3214a923d9d0a23eb80
parent 9ce39b9e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -674,6 +674,9 @@ public class BluetoothMapObexServer extends ServerRequestHandler {
        } catch (NumberFormatException e) {
            Log.w(TAG, "Wrongly formatted message handle: " + msgHandle);
            return ResponseCodes.OBEX_HTTP_PRECON_FAILED;
        } catch (IllegalArgumentException e) {
            Log.w(TAG, "Message type not found in handle string: " + msgHandle);
            return ResponseCodes.OBEX_HTTP_PRECON_FAILED;
        }

        if( indicator == BluetoothMapAppParams.STATUS_INDICATOR_DELETED) {