New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing "url" #245

Merged
merged 1 commit into from Sep 13, 2016
File filter...
Filter file types
Jump to file or symbol
Failed to load files and symbols.
+4 −1
Diff settings

Always

Just for now

@@ -54,7 +54,10 @@ private void init(JSONObject json) throws TwitterException {
setStart(indicesArray.getInt(0));
setEnd(indicesArray.getInt(1));

this.url = json.getString("url");
if (!json.isNull("url")) {
this.url = json.getString("url");
}

if (!json.isNull("expanded_url")) {
// sets expandedURL to url if expanded_url is null
// http://jira.twitter4j.org/browse/TFJ-704
ProTip! Use n and p to navigate between commits in a pull request.