Avoid potential NPE

This commit is contained in:
Aaron Culliney 2017-11-11 12:06:26 -08:00
parent dc5e7eee25
commit 021604471b

View File

@ -158,7 +158,9 @@ public class Apple2DiskChooserActivity extends Activity {
public void finish() {
sDiskChooserIsChoosing.set(false);
String name = chosenUri == null ? "" : chosenUri.toString();
if (sDisksCallback != null) {
sDisksCallback.onDisksChosen(new DiskArgs(name, chosenUri, chosenPfd));
}
super.finish();
}