Move.
I am not referring to the president of a country who is asking all immigrants to move out of the country. I am not even referring to our own people who think that others - which includes minorities, pseudo(!) intellectuals, students and any one else who dare to disagree with their party and its propaganda, should move out of the country.
I am referring to simple move statement in android sdk which will move a cursor record to a given position. So I copied and pasted the statement from another activity - which was working fine, and tried to click on a record, expecting it to show the contents of the record.
No, instead, it is showing some null pointer exception. I modified the code - that is I corrected the code, but no change. I cleaned the project, thinking some how the new code is not being run. I disabled instant run. I tried running the code on an actual phone.
Nothing could take away the null pointer exception.
After removing gradle files and re-downloading them for what seemed like an eternity, I realized gradle is not the problem.
The problem was moveTo which is absolute, instead of move which is relative.
For one hundredth time I re-re-realized that solutions to many problems would be simple.
I am not referring to the president of a country who is asking all immigrants to move out of the country. I am not even referring to our own people who think that others - which includes minorities, pseudo(!) intellectuals, students and any one else who dare to disagree with their party and its propaganda, should move out of the country.
I am referring to simple move statement in android sdk which will move a cursor record to a given position. So I copied and pasted the statement from another activity - which was working fine, and tried to click on a record, expecting it to show the contents of the record.
No, instead, it is showing some null pointer exception. I modified the code - that is I corrected the code, but no change. I cleaned the project, thinking some how the new code is not being run. I disabled instant run. I tried running the code on an actual phone.
Nothing could take away the null pointer exception.
After removing gradle files and re-downloading them for what seemed like an eternity, I realized gradle is not the problem.
The problem was moveTo which is absolute, instead of move which is relative.
For one hundredth time I re-re-realized that solutions to many problems would be simple.
Comments
Post a Comment