The IntelliJ idea does not show the line that throws an exception
source link: https://www.codesd.com/item/the-intellij-idea-does-not-show-the-line-that-throws-an-exception.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
The IntelliJ idea does not show the line that throws an exception
java.lang.NullPointerException
at com.package.name.classname.methodname(+n1)
at blablabla (+n2)
When the application throws an exception IntelliJ Idea show the following lines. How can I find which line has thrown this exception? I thought that n1 is the line's number but it's not - it's an empty line. So how can I find that line and what's n1?
A class which has been loaded is not the same as you are looking the source code. E.g. different versions of binary and sources.
Sometimes the same class appears several times under classpath.
Sometimes a debugger could show wrong line if file has mix of cr/lf (however never seen it with the IDEA).
Sometimes a build-time or run-time instrumentation could confuse a debugger.
Related Articles
IntelliJ IDEA does not show my module / project
Why does not the caller of the method that throws an exception handle the exception in this situation?
IntelliJ IDEA does not display the scala file option in the read project
IntelliJ IDEA does not copy the application server descriptor and static Web files to its temporary folder on debugging
Intellij IDEA does not import @Grab dependencies in the Groovy project
IntelliJ Idea does not generate an identifier in R.java
IntelliJ IDEA does not allow me to run ScalaTests from a SBT project more
Intellij IDEA does not recognize Play 2.0 features
Xcode 4 Instruments does not show source lines
IntelliJ IDEA does not highlight code that throws an exception - how to enable it?
IntelliJ IDEA does not recognize .feature files
Intellij Idea does not compile my project after switching from JDK 1.6 to 1.7
IntelliJ IDEA does not load - stuck on startup screen
WPF DataGrid Does Not Show All Lines
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK