Finish the activity if the computer wasn't found

This commit is contained in:
Cameron Gutman 2017-05-17 20:51:33 -07:00
parent 1434be262c
commit 93b0073467

View File

@ -81,6 +81,10 @@ public class AppView extends Activity implements AdapterFragmentCallbacks {
// Get the computer object // Get the computer object
computer = managerBinder.getComputer(UUID.fromString(uuidString)); computer = managerBinder.getComputer(UUID.fromString(uuidString));
if (computer == null) {
finish();
return;
}
try { try {
appGridAdapter = new AppGridAdapter(AppView.this, appGridAdapter = new AppGridAdapter(AppView.this,