Fix a couple crash reports

This commit is contained in:
Cameron Gutman
2019-02-05 22:51:48 -08:00
parent 233bceeece
commit 629bf5766d
2 changed files with 16 additions and 2 deletions

View File

@@ -200,6 +200,14 @@ public class ShortcutTrampoline extends Activity {
protected boolean validateInput() {
// Validate UUID
if (uuidString == null) {
Dialog.displayDialog(ShortcutTrampoline.this,
getResources().getString(R.string.conn_error_title),
getResources().getString(R.string.scut_invalid_uuid),
true);
return false;
}
try {
UUID.fromString(uuidString);
} catch (IllegalArgumentException ex) {