Merge "Catch creation of NetworkRequest without NetCap" into lmp-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
949b25423e
@@ -52,6 +52,9 @@ public class NetworkRequest implements Parcelable {
|
||||
* @hide
|
||||
*/
|
||||
public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId) {
|
||||
if (nc == null) {
|
||||
throw new NullPointerException();
|
||||
}
|
||||
requestId = rId;
|
||||
networkCapabilities = nc;
|
||||
this.legacyType = legacyType;
|
||||
|
||||
Reference in New Issue
Block a user