Merge "Adding null check on VolumeInfo" into nyc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
f8ab95d13a
@@ -654,8 +654,9 @@ public class StorageNotification extends SystemUI {
|
|||||||
intent.putExtra(PackageManager.EXTRA_MOVE_ID, move.moveId);
|
intent.putExtra(PackageManager.EXTRA_MOVE_ID, move.moveId);
|
||||||
|
|
||||||
final VolumeInfo vol = mStorageManager.findVolumeByQualifiedUuid(move.volumeUuid);
|
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,
|
return PendingIntent.getActivityAsUser(mContext, move.moveId, intent,
|
||||||
PendingIntent.FLAG_CANCEL_CURRENT, null, UserHandle.CURRENT);
|
PendingIntent.FLAG_CANCEL_CURRENT, null, UserHandle.CURRENT);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user