Alright, so I have ACRA set up in my application in order to help me gather more information about random crashes that my application might suffer.
java.lang.NullPointerException at com.package.SocketHandler.run(Unknown Source)
And I've came across this one in one of the stacktrace, usually the line number would be written in between the parenthesis, but in this case, I get nothing. Which isn't all that helpful really, especially considering the nature of the exception.
The SocketHandler
class is part of a library (jar file) that I link to my Android project (that jar file is also setup to be exported with the project). It's also worth noting the source for the classes contained in this jar file is packaged in it using ANT like so :
<target name="jar">
<jar destfile="${WORKSPACE_EXPORT}/mylib.jar">
<fileset dir="${dir.bin.android}" />
<fileset dir="${dir.src.android}" />
</jar>
</target>
So my question is: "Am I missing something in order to obtain the line numbers in my ACRA report for the errors that may occur in this external library, given that the source is already bundled with it ?".
Thanks!
UPDATE: I got it working following zapl's lead. I modified my ant build file to enable debugging information in my library like so :
<javac
debug="true" <!-- added this line -->
debuglevel="lines,vars,source" <!-- and this line -->
srcdir="${dir.src.android}"
destdir="${dir.bin.android}"
verbose="false"
classpathref="path.class"
includeantruntime="false" />