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

Commit ef5285e3 authored by Daichi Hirono's avatar Daichi Hirono Committed by android-build-merger
Browse files

Merge "Add nullcheck to StorageSettings." into nyc-dev

am: 0e048a11

* commit '0e048a11':
  Add nullcheck to StorageSettings.

Change-Id: I58982903534d2dce24bd453bc72617a607373684
parents d2477357 0e048a11
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -248,6 +248,10 @@ public class StorageSettings extends SettingsPreferenceFragment implements Index
            // Picked a normal volume
            final VolumeInfo vol = mStorageManager.findVolumeById(key);

            if (vol == null) {
                return false;
            }

            if (vol.getState() == VolumeInfo.STATE_UNMOUNTED) {
                VolumeUnmountedFragment.show(this, vol.getId());
                return true;