diff --git a/src/com/irccloud/android/MessageActivity.java b/src/com/irccloud/android/MessageActivity.java index 877ae559b..068a959f5 100644 --- a/src/com/irccloud/android/MessageActivity.java +++ b/src/com/irccloud/android/MessageActivity.java @@ -533,7 +533,7 @@ private void setFromIntent(Intent intent) { } } - if(intent.getData() != null && intent.getData().getScheme().startsWith("irc")) { + if(intent.getData() != null && intent.getData().getScheme() != null && intent.getData().getScheme().startsWith("irc")) { if(open_uri(intent.getData())) return; else