{"action":"created","issue":{"url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/201","labels_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/201/labels{/name}","comments_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/201/comments","events_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/201/events","html_url":"https://github.com/JakeWharton/RxBinding/issues/201","id":119657604,"number":201,"title":"Cannot setError when using RxTextView.textChanges","user":{"login":"ainesophaur","id":4686198,"avatar_url":"https://avatars.githubusercontent.com/u/4686198?v=3","gravatar_id":"","url":"https://api.github.com/users/ainesophaur","html_url":"https://github.com/ainesophaur","followers_url":"https://api.github.com/users/ainesophaur/followers","following_url":"https://api.github.com/users/ainesophaur/following{/other_user}","gists_url":"https://api.github.com/users/ainesophaur/gists{/gist_id}","starred_url":"https://api.github.com/users/ainesophaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ainesophaur/subscriptions","organizations_url":"https://api.github.com/users/ainesophaur/orgs","repos_url":"https://api.github.com/users/ainesophaur/repos","events_url":"https://api.github.com/users/ainesophaur/events{/privacy}","received_events_url":"https://api.github.com/users/ainesophaur/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-01T07:11:26Z","updated_at":"2015-12-03T19:32:30Z","closed_at":"2015-12-03T19:32:30Z","body":"It seems like same error as #192 but under different circumstances.\r\n\r\nI'm not sure if I'm thinking about this in the wrong manner. I'm observing an edit text using `RxTextView.textChanges` and I use `setError()` to provide an error field. I understand the reasoning of why I'm getting the IndexOutOfBoundsException as the setError is \"changing the text\", but I'm curious if there is any workarounds suggested.\r\n\r\n\r\n\r\n```java\r\nRxTextView.textChanges(priceIncreaseEditText)\r\n  .debounce(200, TimeUnit.MILLISECONDS)\r\n  .filter(s -> !(TextUtils.isEmpty(s)))\r\n  .subscribe(strVal -> {\r\n     priceIncreaseEditText.setError(\"Some error text\");\r\n   });\r\n```\r\n\r\nProduces the error\r\n\r\n```\r\njava.lang.IndexOutOfBoundsException: Invalid index 1, size is 1\r\n            at java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)\r\n            at java.util.ArrayList.get(ArrayList.java:308)\r\n            at android.widget.TextView.sendOnTextChanged(TextView.java:8969)\r\n            at android.widget.TextView.handleTextChanged(TextView.java:9066)\r\n            at android.widget.TextView$ChangeWatcher.onTextChanged(TextView.java:11641)\r\n            at android.text.SpannableStringBuilder.sendTextChanged(SpannableStringBuilder.java:968)\r\n```"},"comment":{"url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/comments/161755848","html_url":"https://github.com/JakeWharton/RxBinding/issues/201#issuecomment-161755848","issue_url":"https://api.github.com/repos/JakeWharton/RxBinding/issues/201","id":161755848,"user":{"login":"ainesophaur","id":4686198,"avatar_url":"https://avatars.githubusercontent.com/u/4686198?v=3","gravatar_id":"","url":"https://api.github.com/users/ainesophaur","html_url":"https://github.com/ainesophaur","followers_url":"https://api.github.com/users/ainesophaur/followers","following_url":"https://api.github.com/users/ainesophaur/following{/other_user}","gists_url":"https://api.github.com/users/ainesophaur/gists{/gist_id}","starred_url":"https://api.github.com/users/ainesophaur/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ainesophaur/subscriptions","organizations_url":"https://api.github.com/users/ainesophaur/orgs","repos_url":"https://api.github.com/users/ainesophaur/repos","events_url":"https://api.github.com/users/ainesophaur/events{/privacy}","received_events_url":"https://api.github.com/users/ainesophaur/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T19:32:30Z","updated_at":"2015-12-03T19:32:30Z","body":"I cannot seem to reproduce the issue in a new project. It seems to be something specific to my build. I was using observeOn to use the main thread, but glad to know I can put it in the debouce directly.\r\n\r\nThis can be closed out. Thanks for replying!"}}