diff options
author | Xiao Ma <xiaom@google.com> | 2020-05-07 15:25:09 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-05-07 15:25:09 +0000 |
commit | db6652aaef0d72b8300a88060053bcbe48e57d4d (patch) | |
tree | f0dc046356af8df58ab0bcfff98a3f25f31a6aa1 /common | |
parent | 88384a2c3893cc83a41c33252172f4c9afd3a9ba (diff) | |
parent | 1eb4c9d55b8e15badb58d0531c1b20c54a54d0f8 (diff) |
Merge "Fix the potential NPE when starting provisioning with FILS." into rvc-dev
Diffstat (limited to 'common')
-rw-r--r-- | common/moduleutils/src/android/net/shared/Layer2Information.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/common/moduleutils/src/android/net/shared/Layer2Information.java b/common/moduleutils/src/android/net/shared/Layer2Information.java index 6825a93..fa4f102 100644 --- a/common/moduleutils/src/android/net/shared/Layer2Information.java +++ b/common/moduleutils/src/android/net/shared/Layer2Information.java @@ -16,6 +16,7 @@ package android.net.shared; +import android.annotation.Nullable; import android.net.Layer2InformationParcelable; import android.net.MacAddress; @@ -23,14 +24,18 @@ import java.util.Objects; /** @hide */ public class Layer2Information { + @Nullable public final String mL2Key; + @Nullable public final String mGroupHint; + @Nullable public final MacAddress mBssid; /** * Create a Layer2Information with the specified configuration. */ - public Layer2Information(String l2Key, String groupHint, MacAddress bssid) { + public Layer2Information(@Nullable final String l2Key, @Nullable final String groupHint, + @Nullable final MacAddress bssid) { mL2Key = l2Key; mGroupHint = groupHint; mBssid = bssid; @@ -41,7 +46,7 @@ public class Layer2Information { StringBuffer str = new StringBuffer(); str.append("L2Key: ").append(mL2Key); str.append(", GroupHint: ").append(mGroupHint); - str.append(", bssid: ").append(mBssid.toString()); + str.append(", bssid: ").append(mBssid); return str.toString(); } |