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

Commit 9a6281a4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Limit namespace length." into udc-dev am: 6db854c1 am: b0f59b78

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