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

Commit 6db854c1 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Limit namespace length." into udc-dev

parents bba308b2 e3407ec2
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -4124,6 +4124,10 @@ public class JobSchedulerService extends com.android.server.SystemService
                if (namespace.isEmpty()) {
                if (namespace.isEmpty()) {
                    throw new IllegalArgumentException("namespace cannot be empty");
                    throw new IllegalArgumentException("namespace cannot be empty");
                }
                }
                if (namespace.length() > 1000) {
                    throw new IllegalArgumentException(
                            "namespace cannot be more than 1000 characters");
                }
                namespace = namespace.intern();
                namespace = namespace.intern();
            }
            }
            return namespace;
            return namespace;