mirror of
https://github.com/mauiaaron/apple2.git
synced 2025-01-10 06:31:13 +00:00
Avoid potential NPE
This commit is contained in:
parent
dc5e7eee25
commit
021604471b
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user