{"action":"created","issue":{"url":"https://api.github.com/repos/chennaione/sugar/issues/763","repository_url":"https://api.github.com/repos/chennaione/sugar","labels_url":"https://api.github.com/repos/chennaione/sugar/issues/763/labels{/name}","comments_url":"https://api.github.com/repos/chennaione/sugar/issues/763/comments","events_url":"https://api.github.com/repos/chennaione/sugar/issues/763/events","html_url":"https://github.com/chennaione/sugar/issues/763","id":250360425,"node_id":"MDU6SXNzdWUyNTAzNjA0MjU=","number":763,"title":"Failed to read row 0, column -1 from a CursorWindow which has","user":{"login":"walisonbh","id":2237525,"node_id":"MDQ6VXNlcjIyMzc1MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/2237525?v=4","gravatar_id":"","url":"https://api.github.com/users/walisonbh","html_url":"https://github.com/walisonbh","followers_url":"https://api.github.com/users/walisonbh/followers","following_url":"https://api.github.com/users/walisonbh/following{/other_user}","gists_url":"https://api.github.com/users/walisonbh/gists{/gist_id}","starred_url":"https://api.github.com/users/walisonbh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/walisonbh/subscriptions","organizations_url":"https://api.github.com/users/walisonbh/orgs","repos_url":"https://api.github.com/users/walisonbh/repos","events_url":"https://api.github.com/users/walisonbh/events{/privacy}","received_events_url":"https://api.github.com/users/walisonbh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-08-15T16:05:04Z","updated_at":"2018-06-10T07:05:19Z","closed_at":null,"author_association":"NONE","body":"Hello friends!\r\n\r\nCould anyone clarify the reason for this error?\r\n\r\n```\r\npackage br.com.wlsolucoes.xxxxxxxxxxxx.Model.Entity;\r\n\r\nimport com.orm.dsl.Table;\r\n\r\n@Table(name = \"cores_veiculos\")\r\npublic class CorVeiculo {\r\n\tprivate Long id;\r\n\tprivate String nome;\r\n\r\n\tpublic Long getId() {\r\n\t\treturn id;\r\n\t}\r\n\r\n\tpublic void setId(Long id) {\r\n\t\tthis.id = id;\r\n\t}\r\n\r\n\tpublic String getNome() {\r\n\t\treturn nome;\r\n\t}\r\n\r\n\tpublic void setNome(String nome) {\r\n\t\tthis.nome = nome;\r\n\t}\r\n\r\n\tpublic String toString() {\r\n\t\treturn nome;\r\n\t}\r\n}\r\n```\r\n\r\n`findWithQuery(CorVeiculo.class, \"Select id, nome from cores_veiculos\")`\r\n\r\n> SQLiteQuery: Select id, nome from cores_veiculos\r\n Failed to read row 0, column -1 from a CursorWindow which has 16 rows, 2 columns.\r\n java.lang.IllegalStateException: Couldn't read row 0, col -1 from CursorWindow.  Make sure the Cursor is initialized correctly before accessing data from it.\r\n     at android.database.CursorWindow.nativeGetLong(Native Method)\r\n     at android.database.CursorWindow.getLong(CursorWindow.java:511)\r\n     at android.database.AbstractWindowedCursor.getLong(AbstractWindowedCursor.java:75)\r\n     at com.orm.SugarRecord.inflate(SugarRecord.java:354)\r\n     at com.orm.SugarRecord.getEntitiesFromCursor(SugarRecord.java:213)\r\n     at com.orm.SugarRecord.findWithQuery(SugarRecord.java:193)\r\n     at br.com.wlsolucoes.xxxxxxxxxxxx.Fragment.CadastrarDadosVeiculoFragment.montarAutoCompleteTextView(CadastrarDadosVeiculoFragment.java:245)\r\n     at br.com.wlsolucoes.xxxxxxxxxxxx.Fragment.CadastrarDadosVeiculoFragment.onStart(CadastrarDadosVeiculoFragment.java:214)\r\n     at android.support.v4.app.Fragment.performStart(Fragment.java:2218)\r\n     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1340)\r\n     at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1528)\r\n     at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1595)\r\n     at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:758)\r\n     at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2363)\r\n     at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2149)\r\n     at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManager.java:2103)\r\n     at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2013)\r\n     at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:710)\r\n     at android.os.Handler.handleCallback(Handler.java:739)\r\n     at android.os.Handler.dispatchMessage(Handler.java:95)\r\n     at android.os.Looper.loop(Looper.java:135)\r\n     at android.app.ActivityThread.main(ActivityThread.java:5254)\r\n     at java.lang.reflect.Method.invoke(Native Method)\r\n     at java.lang.reflect.Method.invoke(Method.java:372)\r\n     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:903)\r\n     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/chennaione/sugar/issues/comments/396026458","html_url":"https://github.com/chennaione/sugar/issues/763#issuecomment-396026458","issue_url":"https://api.github.com/repos/chennaione/sugar/issues/763","id":396026458,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NjAyNjQ1OA==","user":{"login":"Bartoloni","id":31692839,"node_id":"MDQ6VXNlcjMxNjkyODM5","avatar_url":"https://avatars1.githubusercontent.com/u/31692839?v=4","gravatar_id":"","url":"https://api.github.com/users/Bartoloni","html_url":"https://github.com/Bartoloni","followers_url":"https://api.github.com/users/Bartoloni/followers","following_url":"https://api.github.com/users/Bartoloni/following{/other_user}","gists_url":"https://api.github.com/users/Bartoloni/gists{/gist_id}","starred_url":"https://api.github.com/users/Bartoloni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bartoloni/subscriptions","organizations_url":"https://api.github.com/users/Bartoloni/orgs","repos_url":"https://api.github.com/users/Bartoloni/repos","events_url":"https://api.github.com/users/Bartoloni/events{/privacy}","received_events_url":"https://api.github.com/users/Bartoloni/received_events","type":"User","site_admin":false},"created_at":"2018-06-10T07:05:19Z","updated_at":"2018-06-10T07:05:19Z","author_association":"NONE","body":"i've the same issue... no one with an answer?"}}
{"actor":{"display_login":"Bartoloni"}}