The basic way to see where the bug is, is to check the line numbers. To turn on it on eclipse, you can do it in two ways.
1.1 Right click Immediately on the left of the code editor and mark the option "Show Line Numbers"
1.2 Go to Preferences -> General -> Editor -> Text Editors and mark the option "Show line numbers"
2. Find the problem
The next step is try to find where could be the problem. For this purpose, you can use both logcat or bugReport
Basically the There is two way to get the content of logcat. One is directly from the eclipse IDE and another one is from the console. Since the console will shows you all the logs regarding the mobile phone and not just about your specific application, I recommend you to use the one which is integrated in eclipse.
2.1.1 Eclipse logcat: On eclipse select Windows -> show view -> Others... Then select Android -> LogCat. It will appear under the editor
2.1.2 console logcat: Open a console (or a terminal) and type:
adb -s <serialNumber>