Merge "Adding null check on VolumeInfo" into nyc-dev

am: f8ab95d13a

* commit 'f8ab95d13aa175631c8f38ced8e9c606b02b6be5':
  Adding null check on VolumeInfo

Change-Id: I4bd2260f8b1c080faa8bd8c20073945f7a7b2fd3
This commit is contained in:
Suprabh Shukla
2016-04-29 20:15:14 +00:00
committed by android-build-merger

View File

@@ -654,8 +654,9 @@ public class StorageNotification extends SystemUI {
intent.putExtra(PackageManager.EXTRA_MOVE_ID, move.moveId);
final VolumeInfo vol = mStorageManager.findVolumeByQualifiedUuid(move.volumeUuid);
intent.putExtra(VolumeInfo.EXTRA_VOLUME_ID, vol.getId());
if (vol != null) {
intent.putExtra(VolumeInfo.EXTRA_VOLUME_ID, vol.getId());
}
return PendingIntent.getActivityAsUser(mContext, move.moveId, intent,
PendingIntent.FLAG_CANCEL_CURRENT, null, UserHandle.CURRENT);
}