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

Commit bdf78247 authored by Simon Schoar's avatar Simon Schoar
Browse files

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

example: notification.vibrate = new long[0];
parent 734bc9ba
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -460,7 +460,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");