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

Commit d45c9f4c authored by Simon Schoar's avatar Simon Schoar Committed by Jean-Baptiste Queru
Browse files

Prevent IndexOutOfBoundsException on toString() if vibrate array is empty (non null)

example: notification.vibrate = new long[0];
parent ceac091e
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -458,7 +458,9 @@ public class Notification implements Parcelable
                sb.append(this.vibrate[i]);
                sb.append(',');
            }
	    if (N != -1) {
        	sb.append(this.vibrate[N]);
	    }
            sb.append("]");
        } else if ((this.defaults & DEFAULT_VIBRATE) != 0) {
            sb.append("default");