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

Commit 11afa8a4 authored by Alon Albert's avatar Alon Albert
Browse files

Throw NPE if s is null

Bug: 5926510
Change-Id: I3d0a38d31695a8b103b3d153d90d83474f56990e
parent 3ad77466
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -481,6 +481,9 @@ public class Time {
     * @throws android.util.TimeFormatException if s cannot be parsed.
     */
     public boolean parse3339(String s) {
         if (s == null) {
             throw new NullPointerException("time string is null");
         }
         if (nativeParse3339(s)) {
             timezone = TIMEZONE_UTC;
             return true;