Merge "Catch creation of NetworkRequest without NetCap" into lmp-dev
This commit is contained in:
commit
949b25423e
1 changed files with 3 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue