am 113769d7: Merge "Fix NPE." into mnc-dev
* commit '113769d70b2221697ad9a9553da68ec6483cbfa1': Fix NPE.
This commit is contained in:
@@ -68,8 +68,10 @@ public class AssistContent {
|
||||
setWebUri(null);
|
||||
if (intent != null && Intent.ACTION_VIEW.equals(intent.getAction())) {
|
||||
Uri uri = intent.getData();
|
||||
if ("http".equals(uri.getScheme()) || "https".equals(uri.getScheme())) {
|
||||
setWebUri(uri);
|
||||
if (uri != null) {
|
||||
if ("http".equals(uri.getScheme()) || "https".equals(uri.getScheme())) {
|
||||
setWebUri(uri);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user