From dfd58000537ea4ee49d6eaf07e59f62fd37d6f04 Mon Sep 17 00:00:00 2001 From: Kenny Root Date: Sat, 5 Sep 2015 22:44:51 -0700 Subject: URI for ConsoleActivity can be null If we're rotating before we finished, the URI will be null. Don't bother to set the requested bridge name. --- app/src/main/java/org/connectbot/ConsoleActivity.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'app/src/main/java/org/connectbot/ConsoleActivity.java') diff --git a/app/src/main/java/org/connectbot/ConsoleActivity.java b/app/src/main/java/org/connectbot/ConsoleActivity.java index 950e64a..7ed9076 100644 --- a/app/src/main/java/org/connectbot/ConsoleActivity.java +++ b/app/src/main/java/org/connectbot/ConsoleActivity.java @@ -488,7 +488,10 @@ public class ConsoleActivity extends AppCompatActivity implements BridgeDisconne if (icicle == null) { requested = getIntent().getData(); } else { - requested = Uri.parse(icicle.getString(STATE_SELECTED_URI)); + String uri = icicle.getString(STATE_SELECTED_URI); + if (uri != null) { + requested = Uri.parse(uri); + } } inflater = LayoutInflater.from(this); -- cgit v1.2.3