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

* [android] fix invalid call scrollToElement when has not option param #491

merged 1 commit into from Jul 4, 2017
Jump to file or symbol
Failed to load files and symbols.
+3 −1
Diff settings


Just for now

@@ -103,7 +103,9 @@ public static Action get(String actionName,JSONArray args){
if (args == null) {
return null;
return new ScrollToElementAction(args.getString(0),args.getJSONObject(1));
String ref = args.size() >= 1 ? args.getString(0) : null;
JSONObject options = args.size() >= 2 ? args.getJSONObject(1) : null;
return new ScrollToElementAction(ref, options);
case ADD_RULE:
if (args == null) {
return null;
ProTip! Use n and p to navigate between commits in a pull request.