mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-27 21:29:42 +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() {
|
public void finish() {
|
||||||
sDiskChooserIsChoosing.set(false);
|
sDiskChooserIsChoosing.set(false);
|
||||||
String name = chosenUri == null ? "" : chosenUri.toString();
|
String name = chosenUri == null ? "" : chosenUri.toString();
|
||||||
|
if (sDisksCallback != null) {
|
||||||
sDisksCallback.onDisksChosen(new DiskArgs(name, chosenUri, chosenPfd));
|
sDisksCallback.onDisksChosen(new DiskArgs(name, chosenUri, chosenPfd));
|
||||||
|
}
|
||||||
super.finish();
|
super.finish();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user