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

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

Merge "WifiScanner: check nullness of bundle extra"

parents 9bf17be5 d09d44ec
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -138,7 +138,8 @@ public class WifiScanner {
    public List<Integer> getAvailableChannels(@WifiBand int band) {
        try {
            Bundle bundle = mService.getAvailableChannels(band, mContext.getOpPackageName());
            return bundle.getIntegerArrayList(GET_AVAILABLE_CHANNELS_EXTRA);
            List<Integer> channels = bundle.getIntegerArrayList(GET_AVAILABLE_CHANNELS_EXTRA);
            return channels == null ? new ArrayList<>() : channels;
        } catch (RemoteException e) {
            throw e.rethrowFromSystemServer();
        }